60 lines
747 B
Groff
60 lines
747 B
Groff
|
|
|
|
SYSTEM(3) Minix Programmer's Manual SYSTEM(3)
|
|
|
|
|
|
NAME
|
|
system - issue a shell command
|
|
|
|
SYNOPSIS
|
|
#include <stdlib.h>
|
|
|
|
int system(const char *string)
|
|
|
|
DESCRIPTION
|
|
System 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, then returns the exit status of the shell.
|
|
|
|
SEE ALSO
|
|
sh(1), popen(3), execve(2), wait(2).
|
|
|
|
DIAGNOSTICS
|
|
Exit status 127 indicates the shell couldn't be executed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
May 15, 1985 1
|
|
|