4.3BSD-UWisc/man/cat3/system.3f




SYSTEM(3F)          UNIX Programmer's Manual           SYSTEM(3F)



NAME
     system - execute a UNIX command

SYNOPSIS
     integer function system (string)
     character*(*) string

DESCRIPTION
     _S_y_s_t_e_m causes _s_t_r_i_n_g to be given to your shell as input as
     if the string had been typed as a command.  If environment
     variable SHELL is found, its value will be used as the com-
     mand interpreter (shell); otherwise _s_h(1) is used.

     The current process waits until the command terminates.  The
     returned value will be the exit status of the shell.  See
     _w_a_i_t(2) for an explanation of this value.

FILES
     /usr/lib/libU77.a

SEE ALSO
     exec(2), wait(2), system(3)

BUGS
     _S_t_r_i_n_g can not be longer than NCARGS-50 characters, as
     defined in <_s_y_s/_p_a_r_a_m._h>.





























Printed 12/27/86          May 15, 1985                          1