chmod command (disables the chmod commands specified in job definition scripts)
- Organization of this page
Format
chmod [option][mode][path-name]
You can create this command by using the script_0 sample script file as the base. For details about how to create the command, see 2.6.6(2) Preparations for using the script-format UNIX-compatible commands (Windows only).
Description
This command disables all the chmod commands and their arguments that are specified in job definition scripts. This command always terminates normally with return code 0.
In Windows, if access control is performed for each login user, it might not be necessary to change access permissions when job definition scripts are run. In such a case, you can use this command to disable all chmod commands specified in job definition scripts, thereby eliminating the need to modify job definition scripts that have been migrated from a UNIX system to a Windows system.
Arguments
Return code
Return code |
Meaning |
---|---|
0 |
Normal termination |
Notes
-
In command substitution, the commands specified in arguments are still executed. If this affects the subsequent processing, check and, if necessary, revise the specification.
Usage examples
The following shows an example definition of a job definition script. This example assumes that the chmod command has been created by using the script_0 sample script file as the base.
-
Ignore the chmod commands specified in job definition scripts. The options of the chmod commands specified in this example are not executed:
chmod go-x test.txt if [[ $? -ge 1 ]]; then # Processing continues because the return code of chmod is always 0. echo "chmod error." 1>&2 exit 1 fi