Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
CallShell
NAME
CallShell - 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.
FILES
/bin/sh |
pathname of sh(1)
|
SEE ALSO
sh(1), wait(2)
BUGS
The SHELL environment variable is not honored.
Because the environment variables are passed unchanged to sh(1)
this interface is inherently insecure if the process runs with s-bit.
Edited by: borchert, last change: 1997/02/25, revision: 1.2, converted to HTML: 1997/04/28
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine