

            subsys (2) --- call the Subsystem command interpreter    08/27/84


          | _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

          |      integer function subsys (command)
          |      character command (ARB)

          |      Library:  vshlib (shell routine library)


          | _F_u_n_c_t_i_o_n

          |      'Subsys'   takes  an  EOS  terminated  string  as  its  only
          |      argument.  It then passes this string on to the shell to  be
          |      executed.

          |      'Subsys'  returns  ERR if it could not put the command where
          |      the shell can get to it.  Otherwise, it passes on the return
          |      code from the shell's execution of the command.


          | _I_m_p_l_e_m_e_n_t_a_t_i_o_n

          |      'Subsys' first create a temporary file  with  'mktemp'.   It
          |      writes  the  command to be executed to the file, rewinds the
          |      open file descriptor, and then calls the 'shell'  subroutine
          |      on that descriptor.  Finally, it calls 'rmtemp' to close the
          |      temporary file.


          | _C_a_l_l_s

          |      mktemp, shell, rmtemp


          | _S_e_e _A_l_s_o

          |      mktemp (2), shell (2), rmtemp (2)






















            subsys (2)                    - 1 -                    subsys (2)


