This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:exec [2013/07/16 15:08] smj created |
tutorials:exec [2022/03/15 09:41] (current) papa [Automatic commands] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | //EXEC// is the TOPS-20 | + | **EXEC** is the TOPS-20 |
+ | |||
+ | ====== Using EXEC ====== | ||
+ | |||
+ | Similarly to a Unix shell, EXEC presents the user with a simple text-based command line interface. EXEC prints a prompt string (the default prompt is '' | ||
+ | |||
+ | Commands are entered in the form: | ||
+ | |||
+ | * command name | ||
+ | * one or more optional arguments or switches (separated from the command name and each other by one or more spaces) | ||
+ | * **Enter** key to indicated command input has been completed. | ||
+ | |||
+ | (Some commands also allow the input of [[# | ||
+ | |||
+ | Long commands can be continued to a second line by typing a hyphen ('' | ||
+ | |||
+ | EXEC then processes the command, possibly displaying output on the user's terminal. When command | ||
+ | |||
+ | EXEC has several features that assist the user in entering commands. | ||
+ | |||
+ | ===== Command and argument list ===== | ||
+ | |||
+ | Pressing ''?'' | ||
+ | |||
+ | * At the EXEC prompt, pressing ''?'' | ||
+ | * In the middle of command name input, pressing ''?'' | ||
+ | * Elsewhere, pressing ''?'' | ||
+ | |||
+ | ===== Completion and guidewords ===== | ||
+ | |||
+ | During command entry, pressing **Esc** will complete partial | ||
+ | |||
+ | //Guidewords// (also called "noise words" | ||
+ | |||
+ | @diRECTORY | ||
+ | |||
+ | ... and wait for the user to specify what files he wants listed, or press **Enter** to list all files in the current directory. | ||
+ | |||
+ | ===== Abbreviations ===== | ||
+ | |||
+ | Commands, arguments, and switches can be entered in abbreviated form --- only typing enough characters to be distinguishable from alternatives. For some commands, etc., only one or two characters is sufficient. | ||
+ | |||
+ | Acceptable non-unique abbreviations have been defined for some commands: | ||
+ | |||
+ | ^ Command ^ Accepted | ||
+ | | CONTINUE | CON | | ||
+ | | CONNECT | CONN | | ||
+ | | EXECUTE | EX | | ||
+ | | EXPUNGE | EXP | | ||
+ | | LOGIN | LOG | | ||
+ | | LOGOUT | LOGO | | ||
+ | |||
+ | ===== Command line editing ===== | ||
+ | |||
+ | Use the following control keys to edit command text before pressing **Enter** (except for **Ctrl-H**). | ||
+ | |||
+ | | **Backspace** | Delete last-typed character to the left. | | ||
+ | | **Ctrl-R** | Retype current command line. | | ||
+ | | **Ctrl-U** | Erase current command line. | | ||
+ | | **Ctrl-W** | Erase previous word. | | ||
+ | | **Ctrl-H** | Reprint erroneous command up to error.< | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Subcommands ===== | ||
+ | |||
+ | To enter subcommands, | ||
+ | |||
+ | |||
+ | ====== Command Files ====== | ||
+ | |||
+ | A TOPS-20 command file is text file containing a sequence of TOPS-20 commands that are to be executed in a batch. The default file type is " | ||
+ | |||
+ | @TAKE (COMMANDS FROM) MYCMDS | ||
+ | |||
+ | TOPS-20 will read the commands in MYCMDS.CMD and execute them in order, displaying command output on your terminal, then display the following message to indicate the end of command | ||
+ | |||
+ | End of MYCMDS.CMD.1 | ||
+ | |||
+ | You can suppress the display of the end-of-processing message by putting the command '' | ||
+ | |||
+ | > EXEC requires all command file lines to end with carriage return+line feed control sequence ('' | ||
+ | |||
+ | ===== Automatic commands ===== | ||
+ | |||
+ | EXEC will automatically execute certain command files (if they exist) when processing the following commands: | ||
+ | |||
+ | (Command files are executed in the indicated order. Files not in '' | ||
+ | |||
+ | ^ TOPS-20 Command ^ Automatic command files ^ | ||
+ | | LOGIN | 1. SYSTEM: | ||
+ | | SUBMIT | 1. SYSTEM: | ||
+ | | PUSH | 1. SYSTEM: | ||
+ | | ATTACH | 1. ATTACH.CMD | | ||
+ | | LOGOUT | 1. LOGOUT.CMD \\ 2. SYSTEM: | ||
+ | |||
+ | When EXEC executes multiple command files, commands in earlier command files may be overridden by commands in later files. For example, during log-in a '' | ||
+ | |||
+ | In principle, your LOGIN.CMD file should contain programs you want to run automatically when you log-in and job-wide customizations (DEFINE, SET LOCATION), while your COMAND.CMD should contain local EXEC customizations that you want applied every time EXEC starts for both LOGIN and PUSH (SET DEFAULT, SET PROGRAM, SET PROMPT | ||
+ | or PCL declarations). | ||
+ | |||
+ | |||
+ |