SYSTEM(3)
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 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.
DIAGNOSTICS
Exit status 127 indicates that the Shell couldn’t be executed.