onsuccess

Syntax: ONSUCCESS [GOTO labelname or SHELL commandline or EXIT or CONTINUE] This must come before the command you wish to monitor.

What it does: For any successful completion of a command from this point on perform the specified action. Possible actions are:

  • GOTO labelname - Jump to labelname and continue processing from that point.
  • SHELL commandline - SHELL out and execute commandline on the local system.
  • CONTINUE - Continue processing the script.
  • EXIT - Terminates any further execution of the script. However, any connection with a site is not disconnected unless the script is terminated or a CLOSE command is executed.
Note: If no action is specified, the script continues processing.