Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (m - o) osh(1)
terminal device names.
-- Species that there are no more options on the osh command line. Any informa-
tion following this option is either processed as redirection specications or
passed to the child process as operands.
Redirection
The osh command initially routes the input, output, and error le information of the child process
to its own standard input, output, and error les. A change in routing is called redirection.
Files that can be redirected include OSS regular les, odd-unstructured Guardian Enscribe format
1 les (le code 180), and Guardian terminal simulation processes such as OSSTTY or Telserv
windows. Other Guardian processes cannot be specied as the source or destination of child pro-
cess redirection; this restriction applies to such processes as spoolers and home terminal emulators
(for example, $VHS cannot receive standard error output unless OSSTTY is used as an intermedi-
ate process). Guardian EDIT les (le code 101) can be used for redirection only when the type of
redirection allows them to be opened for read-only access.
You can redirect information routed to standard les by embedding either or both of the following
in the osh command line:
Standard Guardian command RUN options (specifying an IN, OUT, or TERM parameter
with a Guardian le name between slashes in the command line)
POSIX.2 standard le redirection specications
When a RUN option is used by itself, the Guardian le-system object it species is used for the
corresponding standard le of both the osh process and the OSS application that it launches. The
following values are valid:
IN filename1 species where to nd standard input le data. You can specify a Guardian termi-
nal simulation process (such as OSSTTY or a Telserv window), an odd-
unstructured Enscribe format 1 (le code 180) le, or an EDIT le (le code 101)
using a Guardian lename.
OUT filename2
species where to write standard output le data. You can specify a Guardian ter-
minal simulation process (such as OSSTTY or a Telserv window) or an odd-
unstructured Enscribe format 1 (le code 180) le using a Guardian lename.
TERM filename3
species where to write standard error le data. You can specify a Guardian ter-
minal simulation process (such as OSSTTY or a Telserv window) using a Guar-
dian lename. If you omit this option, the HOMETERM for your terminal session
is used.
When a POSIX.2 redirection specication is used by itself, it applies to the standard le of the
OSS application being launched by the osh command.
When both a RUN option and a POSIX.2 redirection specication for the same standard le are
used, the osh process determines from the le in the POSIX.2 redirection specication whether a
copy of OSSTTY should be started automatically to redirect the standard le data appropriately.
osh POSIX.2 redirection specications are a subset of those dened for a POSIX-conformant shell.
The following rules apply:
All pathnames specied must use OSS pathname syntax. Relative pathnames are resolved
(expanded) using the initial working directory specied in the OSS environment variable
PWD passed to the child process.
527188-007 Hewlett-Packard Company 699