1SYSTEM(3)                  Library Functions Manual                  SYSTEM(3)
2
3
4

NAME

6       system - issue a shell command
7

SYNOPSIS

9       system(string)
10       char *string;
11

DESCRIPTION

13       System causes the string to be given to sh(1) as input as if the string
14       had been typed as a command at a terminal.  The current  process  waits
15       until  the  shell  has  completed,  then returns the exit status of the
16       shell.
17

SEE ALSO

19       popen(3S), execve(2), wait(2)
20

DIAGNOSTICS

22       Exit status 127 indicates the shell couldn't be executed.
23
24
25
267th Edition                      May 15, 1985                        SYSTEM(3)
Impressum