Safeguard Reference Manual (G06.29+, H06.08+, J06.03+)

Table Of Contents
SAFECOM Session-Control Commands
Safeguard Reference Manual 520618-030
4 - 22
OUT Command
Example
This example shows the use of a command file named $DATA.SECURE.INFOADMN.
This command file prints an INFO report about all the users in the ADMIN group:
=OBEY $data.secure.infoadmn
=OUT $s.#lp -- redirect output to $S.#LP
=INFO USERS admin.* , DETAIL -- report on all admin users
=OUT -- redirect output to terminal
=
OUT Command
OUT directs SAFECOM output text to a specified file. SAFECOM output text includes
both input commands and the response to those commands. Output text directed to a
specific file is not echoed to the screen. Typically, OUT is used in command files,
where it directs the command-file output to a list file.
OUT
entered without listfile, closes the current listfile. SAFECOM then opens
the file specified by the OUT option when SAFECOM was started (typically your
home terminal).
listfile
is the file to which SAFECOM is to write its output text. For listfile, specify any
file name.
If listfile does not exist, SAFECOM creates an EDIT-format file and then
writes all output text to that file. If listfile exists, SAFECOM opens the file and
appends the output text.
Considerations
To display the use of your current OUT file, use the ENV OUT command. For
example:
=ENV OUT
OUT $TERM3 -- Interactive, OUT = IN --
=
SAFECOM error messages appear on the terminal screen when you specify an
OUT file.
OUT [ listfile ]