Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)
program_args
specifies any arguments expected on a command line by the program_path program. Such
arguments would include the name of an input file.
• The general form of the TACL OSH command for batch execution of an OSS shell script with
output routed to OSS files is:
OSH [-c] script_path <- >>script_out_file 2>>err_file
-c
implicitly runs the OSS shell to execute the script as a command. Note that -C (uppercase C)
is not a valid command option.
script_path
specifies the OSS pathname for the OSS shell script file to be run.
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 the script file must reside in that subvolume.
<-
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 pathname is not fully qualified, it is resolved from the current working directory.
2>>
indicates that the OSS shell appends error 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, 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.
Scheduling Periodic Tasks 77