Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
osh(1) OSS Shell and Utilities Reference Manual
#POP cmds tmpfile1 tmpfile2
]
13. Redirecting the standard output file 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 specified 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 specified 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 specified.
Guardian processes typically open a Guardian environment disk file for output by requesting pro-
tected or exclusive access. This practice can conflict with use of a file 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 file. Because the output file is still open by the Guardian process executing the command file,
the OSS shell cannot open the file and terminates abnormally.
Guardian Environment Variables
The following Guardian environment variables affect the execution of the osh command.
ASSIGNs
STDERR Names the Guardian file to be used by osh as its Guardian stan-
dard error file. The default file is the hometerm file for the TACL
session.
No Guardian environment ASSIGN values are passed to the child process.
6−106 Hewlett-Packard Company 527188-007