/sys$common/syshlp/TPUHELP.HLB  —  SPAWN
  SPAWN

     Creates a subprocess running the command line interpreter.

  Syntax

     SPAWN [(string) [,{OFF | ON}]]

  Parameters

     string     The command that you want to send to the subprocess.  The
                command is is executed after the subprocess is created.
                When the command is completed, the subprocess ends and
                control returns to the TPU process.

     ON         Specifies that control is to be returned to TPU after the
                subprocess has terminated.  This is the default unless the
                null string is used as the first parameter.

     OFF        Specifies that control is to be left at the DCL prompt after
                the subprocess has terminated.  This is the default if the
                null string is used as the first parameter.

  Comments

     If you do NOT specify a command for the subprocess, return to the
     TPU process by using the DCL ATTACH command or the DCL LOGOUT
     command.  With ATTACH, the subprocess is available for future use.
     With LOGOUT, the subprocess is deleted.

  Example

     SPAWN ("DIRECTORY");

     Spawns a VMS subprocess and executes the DCL DIRECTORY command.  When
     the command is completed, you return to your TPU session.

  Related topics

     ATTACH   CREATE_PROCESS   SEND   SEND_EOF
Close Help