Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)

-secure security_string
specifies the access permissions for the OUT file in the Guardian file system when the OUT file
is an EDIT file and must be created by the command. Valid values are any four-character
combination of the read, write, execute, and purge permissions allowed for Guardian file-system
objects (N, U, O, A, G, C, or - for the super ID).
If you omit this option when an EDIT file must be created, OSSTTY uses the default file-system
permissions for the user ID of your terminal session.
Considerations
The OSS standard error file cannot be redirected to an EDIT file.
The OSS shell commands and utilities do not restrict the use of the standard error file to the
display of error messages. As is true for many implementations of UNIX, the standard error
file can be used when unbuffered output to the terminal is the desired behavior for a utility.
TACL macros or scripts that include OSSTTY should not depend upon the OSS standard error
file containing only error messages, or the OSS standard output file being the only target for
a prompt message.
You can start as many copies of OSSTTY as needed. Give each copy a unique process name.
When OSSTTY’s redirectional target is a Telserv terminal and OSSTTY loses control of the
break key while writing to that terminal, all applications redirecting data through that copy
of OSSTTY experience target outage.
Examples
See the Open System Services Programmer’s Guide for additional examples of OSSTTY use.
The following set of commands, beginning at a TACL prompt, allows redirection of a single
ls command’s standard output from your current terminal to a new EDIT file with the Guardian
file identifier EFILE in the current subvolume:
RUN OSSTTY / NAME $TTY, OUT EFILE , NOWAIT /
OSH
ls -l / > /G/tty/#stdout
exit
STATUS *, TERM
.
.
.
TEDIT EFILE
Thirty seconds after the ls command completes its output, the $TTY process stops because
that is its default idle time. The STATUS command allows you to ensure that OSSTTY has
terminated normally so that the EDIT file was properly closed after the data is written.
The following command at a TACL prompt starts a fault-tolerant OSSTTY server process pair
that writes all OSS application error file output to the virtual home-terminal subsystem (VHS):
RUN OSSTTY / NAME $ZTTY, TERM $VHS, NOWAIT / -backupcpu 3
-server
Processor 3 is used for the backup copy of OSSTTY.
The following command at a TACL prompt starts a fault-tolerant OSSTTY server process pair
that writes all OSS application standard file output to an EDIT file for use only by the super
ID:
RUN OSSTTY / NAME $ZTTY, OUT LOGS.MYFILE, NOWAIT /
-backupcpu 3 -server -secure "-N--"
Processor 3 is used for the backup copy of OSSTTY.
398 OSS Management Utilities