This command, similar to the DOS goto batch command, alters the normal sequence of script command processing. The goto command does not work with if statements.
goto label
label |
Specify the location to which the point of control transfers in the login script. The label must exist elsewhere in the script on a line by itself, followed by a colon and nothing else. Do not include duplicate labels or use goto to go to a point within an if loop. |
Use the following command to specify A as the location to which the point of control transfers in the login script:
goto A