ATDOWN — Run a command line at PM shutdown

Synopsis

ATDOWN [/?] [/Q] [/ONETAIL[+|-]] commands

Options

/?
Display command syntax information.
/Q
Set the echo flag to "OFF" initially instead of "ON".
/ONETAIL
Work around a bug in a few programs .

Note: All options must precede any other arguments on the command line. The first non-option word on the command line will cause option processing to finish.

Description

A non-interactive instance of the 32-bit Command Interpreter is started with the ATDOWN command.

The command interpreter first processes the contents of the CMD_ATDOWN_INIT environment variable, if it has inherited one, as if it were a command tail, then it processes all of the command tails that have been passed to it.

If non-option arguments are supplied, they are treated as a command line to be executed. For compatibility with the 16-bit CMD supplied with IBM OS/2, if the first non-whitespace character in the command line is a pair of quotation marks, both it and the last quotation mark character on the line (if any) will be removed before the command line is executed.

ATDOWN runs commands when Presentation Manager is shut down. It does this by simply waiting for the shutdown notification that Presentation Manager sends to all running PM applications and then executing the commands.

ATDOWN does not spawn a command interpreter process. It uses the command interpreter engine directly. This allows commands to employ a built-in command or a script if desired. All scripts are executed in the context of the ATDOWN process itself.

ATDOWN makes no special provision for handling and displaying the output of the commands that it executes. Unless redirection is explicitly specified for a command, the processes that it invokes inherit the same standard file handles that ATDOWN itself inherited from the process that invoked it.

The return code from the command interpreter is the return code from the last command to be run.


The 32-bit Command Interpreter is © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.