Open System Services Management and Operations Guide (G06.29+, H06.07+)

OSS Management Utilities
Open System Services Management and Operations Guide527191-005
C-6
Starting OSSTTY
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
1. 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.
2. 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
3. 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 in both examples 2 and 3.
See the Open System Services Programmers Guide for additional examples of
OSSTTY use.