Previous Next Chapter

Debugging Script Files

If a script command fails, you may see one of the following error messages:

Unknown command <command>

This occurs when you have entered a command that is unrecognizable.

<command> failed returncode 20

This occurs when a valid command's arguments are entered incorrectly. Enter WHY at the prompt after the error appears for more information about the error.

If an error appears, use your text editor (ED,MEmacs, or a word processor that can save ASCII files) to correct the line containing that command.

Inserting the line SET ECHO ON within the script assists in locating errors. This causes all subsequent command lines to be ECHOed to the screen as they are executed. Error messages are printed after the system tries to execute the incorrect command. To disable SET ECHO, enter SET ECHO OFF or delete the SET ECHO ON line.

Top Previous Next Chapter