Open System Services Management and Operations Guide (G06.25+, H06.03+)

Managing OSS Files
Open System Services Management and Operations Guide527191-002
6-28
Redirecting OSS Standard Files
OSS standard file); to a Guardian process or the Guardian file system, the OSS
process appears to be a Guardian file-system object. OSSTTY can be started by an
individual user through the OSH command or directly by an OSS administrator.
OSSTTY can be used to redirect one or more OSS standard files to Guardian EDIT
files or Guardian processes. Figure 6-5 on page 6-28 illustrates use of the OSS shell
when only the OSS standard output and standard error files are redirected, but input is
still accepted from the Telserv terminal that enters the following command; the process
name $ZAAA is assigned by the NonStop operating system when OSSTTY is started:
OSH -osstty / OUT $DATA.OSSLOG.EDITFIL, TERM $VHS /
Figure 6-6 on page 6-29 illustrates the behavior when OSSTTY is run as a server
named $ZTTY before starting an application program explicitly designed to use it, such
as mysample3 in the following command set:
RUN OSSTTY / NAME $ZTTY, IN $VHS,OUT $DATA.OSSLOG.EDITFIL,
TERM $VHS, NOWAIT / -server
OSH -p "/usr/mysample3"
For information about using OSSTTY through the OSH command, see the osh(1)
reference page either online or in the Open System Services Shell and Utilities
Reference Manual. For an example of a TACL script using OSSTTY, see the Open
System Services Programmer’s Guide.
Figure 6-5. Redirecting Selected OSS Standard Files
S
t
a
n
d
a
r
d
i
n
p
u
t
f
i
l
e
OSS shell
OSSTTY
Telserv
session
$DATA.OSSLOG.
EDITFIL
OUT
Standard
output file
/G/ZAAA/#stdout
/G/ZAAA/#stderr
S
t
a
n
d
a
r
d
e
r
r
o
r
f
i
l
e
$VHS
T
E
R
M
VST023.vsd