AmigaDOS - Scripting

Scripting

AmigaDOS also has the feature of dealing with batch programming, which it calls "script" programming, and has a number of commands such as Echo, If, Then, EndIf, Val, and Skip to deal with structured script programming. Scripts are text-based files and can be created with AmigaDOS's internal text editor program, called Ed (unrelated to Unix's Ed), or with any other third-party text editor. To invoke a script program, AmigaDOS uses the command Execute.

1> Execute myscript
executes the script called "myscript".

This method of executing scripts keeps the console window busy until the script has finished its scheduled job. Users cannot interact with the console window until the script ends or until they interrupt it.

While:

1> Run Execute myscript
The AmigaDOS command "Run" executes any DOS command or any kind of program and keeps the console free for further input.

If the protection bit "S" (meaning "Script") is set on, then AmigaDOS is able to recognize and automatically run the script by simply invoking its name.

Read more about this topic:  AmigaDOS