SYSTEM(3S) UNIX Programmer's Manual SYSTEM(3S) NAME system - issue a shell command SYNOPSIS #include int system (string) char *string; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System V DESCRIPTION _S_y_s_t_e_m causes the _s_t_r_i_n_g to be given to _s_h(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), exec(2). DIAGNOSTICS The _s_y_s_t_e_m library routine terminates unsuccessfully if it can't execute _s_h(1).