Spawn

PURPOSE:  This equated command starts a sub-process so DCL commands can be executed.  A DCL command may be specified as an argument.

Syntax

SPAWN [argument]

argument

will be passed to DCL as a command.  If an argument is specified, the command will be executed and control will return to the ACCENT R command level.  The program that requires interactive input as an argument cannot be specified.

If an argument is not specified, control will transfer to the OpenVMS command level ($).  Any command or program can be executed at this level.  To return to the ACCENT R command level, enter a LOGOUT command at the operating system prompt.

EXAMPLES

These examples show some practical uses for the SPAWN command such as displaying the names of DBL’s, displaying the disk quota, and displaying the queues.

*SPAWN DIR *.DBL
Directory SYS$USER1:[SMITH]
BOOKS.DBL;3   MAGAZINES.DBL;27  NEWSPAPER.DBL;26   CDS.DBL;2
VIDEO.DBL;1   CASSETTES.DBL;1   INVESTORS.DBL;3
Total of 7 files
*SPAWN SHOW QUOTA

User [SMITH] has 5866 blocks used, 4134 available, of 10000 authorized and permitted overdraft of 100 blocks on SYS$USER1.

*SPAWN SHOW QUEUE
Batch queue BATCH1
Batch queue SYS$BATCH
Batch queue SYS$QA
Terminal queue TXA2

Job name

User name

Entry

Blocks

Status

CS

SMITH

512

3

Pending

In the next example, the user enters a SPAWN command without any arguments.  The user is transferred to the DCL command level and executes a directory command.  Finally, the user enters a LOGOUT command and returns to ACCENT R.

*SPAWN
$ DIR BOOKS.*
DIRECTORY SYS$USER1:[SMITH]
BOOKS.DBL;3
Total of 1 file
$ LOGO
Process SMITH_1 logged out at 5-APR-1990 10:19:04.08

NOTES:  The DCL output is not logged to an ACCENT R log file, if one is open.  This command cannot be used to log off the system because LOGO will return control to ACCENT R.  To log off the system directly from ACCENT R, use the following command:

LINK TO DCL 'LOGO'