Products | Versions |
---|---|
TIBCO LogLogic Log Management Intelligence | all versions |
2. Make the permissions executable on the script with the following command:
$ chmod +x /path-to-script/script.name
Example 1:
$ cd /tmp; touch testfile; ls –l testfile
-rw-r--r-- 1 root root 0 Jul 1 12:23 testfile
** Shows read/write permissions for the owner and read permissions for group and others.
$ chmod +x testfile ; ls -l testfile
-rwxr-xr-x 1 root root 0 Jul 1 12:23 testfile
This command would have resulted in the same permissions (rwxr-xr-x):
$ chmod 755 /path-to-script/script.name
** Shows read/write/execute permissions for the owner and read/execute permissions for group and others.
Alternatively, the following syntax would have only given toor/root execute permission:
$ chmod +ux testfile ; ls -l testfile
-rwxr--r-- 1 root root 0 Jul 1 12:23 testfile