6.2.7 Commands for restarting execution of the job definition script
There are three different ways to restart execution of the job definition script:
Sequential execution
This method executes one command from the location at which the job definition script is stopped. The step and next commands are used to perform sequential execution.
Continuous execution
This method resumes execution of a job definition script that is stopped. The continue command is used to perform continuous execution.
Executing a function
When execution of a job definition script is stopped within a function, this method executes the job definition script until the function returns control. The finish command is used to execute a function.
The return command is used to terminate a function. The signal command is used to send a signal to the job definition script.
When execution of the job definition script stops after execution of a command, a message, the line number of the next line that is scheduled to be executed, and the line in the source file are displayed in one of the formats shown in the following.
- For a job definition script that is specified in the command for executing a batch job or a job definition script that is specified in the #-adsh_script extended script command
line-number: line-contents-in-source-file Current: command-string
line-number: Line number of the next command to be executed
line-contents-in-source-file: Contents of the line in the source file that correspond to the line number
command-string: Next command string to be executed
- For an external script that is not specified in the #-adsh_script extended script command
Line: line-number Current: command-string
line-number: Line number of the next command to be executed
command-string: Command string of the next command to be executed
- Notes:
In the case of a job definition script that is executed in another process, <Another process script> is displayed as the command string.
If the job definition script being debugged is executing the trap command's action, the following is displayed:
Line: <Trap action> Current: command-string
If the end-of-job definition script (EOF) has been reached, the following is displayed:
Current: <EOF>
- Example of output
This example displays the next line number to be executed and the contents of the line in the source file.
For a job definition script that is specified in the command for executing a batch job or a job definition script that is specified in the #-adsh_script extended script command
100: echo "aaa"
The next process to be performed is echo "aaa" on line 100.
Current: echo
The command to be executed then is echo.
For an external script that is not specified in the #-adsh_script extended script command
Line: 50
The next process to be performed is line 50 in the external script.
Current: num=1
The process to be performed then is num=1.