SYSTEM(3S)
NAME
system − issue a shell command
USAGE
system(string) char *string;
DESCRIPTION
System causes string to be sent to sh(1) as input, as if string had been typed at a shell prompt by a user. The current process waits until the shell has completed, then returns the exit status of the shell.
DIAGNOSTICS
Exit status 127 indicates that the shell couldn’t be executed.