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

Operating the OSS Environment
Open System Services Management and Operations Guide527191-005
2-41
Using the NetBatch Product
If the initial working directory is not the current working directory, relative
pathnames are resolved from the initial working directory. When the initial
working directory is a Guardian subvolume and only a relative pathname is
specified, the specified pathname must be a Guardian file identifier and
exception output is saved in a file-code-180 file in that subvolume.
Site-written shell programs can also be used instead of the default OSS shell. See
the osh(1) reference page either online or in the Open System Services Shell and
Utilities Reference Manual for the syntax to use for nondefault shell programs.
An alternate form of the TACL OSH command for batch execution of an OSS shell
script allows creation of output files in an initial working directory (sometimes called
a login directory) that differs from the current working directory. This form of the
command is:
OSH -p sh <- >>script_out_file 2>>err_file script_path
-p sh
explicitly runs the OSS shell. Note that -P (uppercase P) is not a valid
command option.
<-
indicates that the OSS shell started by the command ignores its standard input
(stdin) file.
>>
indicates that the OSS shell appends normal output to the identified file instead
of the standard output (stdout) file.
script_out_file
is the OSS pathname of the file to receive normal output.
If the initial working directory is not the current working directory, a relative
pathname is resolved from the initial working directory. When the initial working
directory is a Guardian subvolume and only a relative pathname is specified,
the specified pathname must be a Guardian file identifier and normal output is
saved in a file-code-180 file in that subvolume.
2>>
indicates that the OSS shell appends exception output to the identified file
instead of the standard error (stderr) file.
err_file
is the OSS pathname of the file to receive exception output.
If the initial working directory is not the current working directory, a relative
pathname is resolved from the initial working directory. When the initial working