Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

command-string

Qualifiers

Examples

/INPUT

/OUTPUT

/WAIT

CDD/Plus CDO SPAWN — VMS CDD+_4.1A

 Creates a subprocess.

 SPAWN ─┬──────────>──────────┬───┬───────>──────────┬─>
        ├> typebox (/)
I

N

P

U

T
typebox (=)file-spec ──┤ └> command-string ─┘ ├> typebox (/)
O

U

T

P

U

T
typebox (=)file-spec ─┤ ├> typebox (/)
W

A

I

T
─────────────┤ └> typebox (/)
N

O

W

A

I

T
───────────┘

Additional information available:

command-stringQualifiersExamples

command-string

 Specifies a VMS DCL command to be performed in the context of the
 created subprocess.  After this command is executed, the subprocess is
 deleted (logged out) automatically and control is returned to your
 process.

 If you do not specify a command string, the subprocess is created and
 an interactive session begins.  To return to your original process (the
 one running CDO), you must log out of the created subprocess or attach
 to the original process.

Qualifiers

Additional information available:

/INPUT/OUTPUT/WAIT

/INPUT=file-spec

 With /INPUT, you specify a file containing one or more DCL commands to
 be executed by the spawned subprocess.  Once processing of the input
 file is complete, the subprocess is terminated, and you are returned to
 CDO.

/OUTPUT=file-spec

 With /OUTPUT, you request that the output from the subprocess be
 written to the specified file.

/WAIT

 /WAIT (default)
 /NOWAIT

 Controls whether or not the system waits until the created subprocess
 is completed before allowing more commands to be issued in the parent
 process (the process in which you are running CDO).  The default is
 /WAIT, where you are not returned to the parent process until the
 specified command string completes execution, or you log out of the
 created subprocess.  You can also use the ATTACH command to return to
 the parent process.

 The /NOWAIT qualifier allows you to issue new commands while the
 specified subprocess is running.  However, note that when you use the
 /NOWAIT qualifier, your terminal can be used by more than one process
 at the same time.  The only way to tell which process you are entering
 input for is by the prompt:  the CDO prompt for the parent process, and
 the DCL prompt (normally a dollar sign) for the created subprocess.

 If you specify /NOWAIT and your input device is a terminal, control
 characters such as CTRL/T or CTRL/Y also affect all subprocesses
 sharing the input device.  CTRL/Y, for example, interrupts all such
 subprocesses.

Examples

 The following command creates a subprocess.  Anything you type is
 received by the subprocess.

 CDO> SPAWN

 The following command creates a subprocess to execute the DCL command
 SHOW TIME.  When the SHOW TIME command completes executing, the
 subprocess is deleted and control is returned to the parent process.

 CDO> SPAWN SHOW TIME
 1-DEC-1986 14:42:15
 CDO>

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026