Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (m - o) osh(1)
#POP cmds tmple1 tmple2
]
13. Redirecting the standard output le from an OSS shell session to the $VHS virtual home
terminal subsystem for later postprocessing:
OSH / OUT $VHS / -osstty
FILES
/bin/sh Contains the default OSS shell to be executed.
NOTES
Many of the osh command options correspond to the options of the TACL RUN or RUND com-
mand that are usually called RUN options in the Guardian environment. Except as described
under Redirection in this reference page, RUN options can be specied as part of the osh com-
mand but apply to the osh process itself, not to the child process created by the call to osh.
If you specify a RUN option value for osh but do not specify the corresponding osh option for the
child process, the RUN option value you specify can be used as the default value for that attribute
of the child process. However, if you specify both a RUN option value for osh and the
corresponding osh option for the child process, the value specied for the RUN option has no
effect on the value used for the child process.
For example:
osh / CPU 5 / -- /usr/scripts/myscript
runs both osh and myscript in processor 5, but
osh / CPU 5 / -cpu 3 -- /usr/scripts/myscript
runs osh in processor 5 and myscript in processor 3.
Use in Programs
When the osh command is run using the system() function, the TACL RUN options IN and OUT
must be specied.
Guardian processes typically open a Guardian environment disk le for output by requesting pro-
tected or exclusive access. This practice can conict with use of a le by an OSS process.
For example:
osh -c "ls -al"
fails if it is invoked within a program and the output from the program is redirected to a Guardian
disk le. Because the output le is still open by the Guardian process executing the command le,
the OSS shell cannot open the le and terminates abnormally.
Guardian Environment Variables
The following Guardian environment variables affect the execution of the osh command.
ASSIGNs
STDERR Names the Guardian le to be used by osh as its Guardian stan-
dard error le. The default le is the hometerm le for the TACL
session.
No Guardian environment ASSIGN values are passed to the child process.
527188-003 Hewlett-Packard Company 6105