Modula-2 || Compiler & Tools || Library || Search Engine


Ulm's Modula-2 Library:
CallShell


NAME

CallShell, Shell - issue a shell command

SYNOPSIS

PROCEDURE Shell(string: ARRAY OF CHAR;
                VAR status: CARDINAL) : BOOLEAN;

DESCRIPTION

Shell causes the string to be given to sh(1) as input as if the string had been typed as a command at a terminal. The current process waits until the shell has completed, the status (see wait(2)) of the shell will be stored in status.

DIAGNOSTICS

Shell returns FALSE if sh(1) cannot be started.

SEE ALSO

sh(1), wait(2)
Edited by: martin, last change: 1996/12/04, revision: 1.1, converted to HTML: 1996/12/11

Modula-2 || Compiler & Tools || Library || Search Engine