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 VAXTPU process.
OFF Specifies that control is to be left at the DCL level after
the subprocess has terminated.
ON Specifies that control is to be returned to VAXTPU after the
subprocess has terminated.
Comments
If you do NOT specify a command for the subprocess, you return to the
VAXTPU 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 VAXTPU session.
Related topics
ATTACH CREATE_PROCESS SEND SEND_EOF