system(string) char *string;
system() gives the string to sh.1 as input, just as if the string had been typed as a command from a terminal. The current process performs a wait.2v system call, and waits until the shell terminates. system() then returns the exit status returned by wait.2v Unless the shell was interrupted by a signal, its termination status is contained in the 8 bits higher up from the low-order 8 bits of the value returned by wait().
Exit status 127 (may be displayed as "32512") indicates the shell could not be executed.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97