beautypg.com

Spawn – Compaq AA-Q88CE-TE User Manual

Page 247

background image

SPAWN

SPAWN

Allows you to execute operating system commands without leaving the RTR
utility.

Format

SPAWN [operating-system-command]

Command Qualifiers

Defaults

/INPUT=file-spec

/NOINPUT

/OUTPUT=file-spec

/OUTPUT=stdout

/WAIT

/WAIT

Description

The

SPAWN

command allows you to execute operating system commands without

leaving the RTR session. If you specify an operating system command as the
parameter to SPAWN, the command is executed in the context of a spawned
subprocess. For example, the command ‘‘SPAWN mail’’ invokes the mail utility;
when you exit from mail, you return to your RTR session.

If you do not specify a parameter, the SPAWN command enters the operating
system command level in the spawned subprocess. You can then enter commands;
you can return to your RTR session by exiting the subprocess.

Parameters

operating-system-command

Can be any operating system command.

Qualifiers

/INPUT=file-spec
/NOINPUT (D)

Specifies an input file containing one or more shell commands to be executed by
the spawned subprocess. If you specify a command and an input file (with the
/INPUT qualifier), the command string is processed before the input file. Once
processing of the input file is complete, the subprocess is terminated.

/OUTPUT=file-spec
/OUTPUT=stdout (D)
/NOUTPUT

Requests that the output from the SPAWN operation is written to the

file-spec

.

RTR Command Line Interface 6–171