Open System Services Management and Operations Guide (G06.25+, H06.03+)
Operating the OSS Environment
Open System Services Management and Operations Guide—527191-002
2-43
Using the NetBatch Product
2. Enter the following at a TACL prompt:
BATCHCOM;SUBMIT JOB, IN \NODE.$SYSTEM.SYSTEM.HOURLY, &
EVERY 60 * * * * mon-fri
As an example of running an OSS shell script periodically, suppose:
•
You want to record OSS process activity every 10 minutes only on weekdays.
•
You have created an OSS shell script file containing the ps command at
/script/processes.sh.
•
You want to record normal output in the OSS file /script/processes.log and
error output in the OSS file /script/processes.err.
You would:
1. Create a valid job file for the NetBatch product, named
\NODE.$SYSTEM.SYSTEM.PROCESS and containing the following TACL
command statement line:
OSH /script/processes.sh <- >>/script/processes.log &
2>>/script/processes.err
2. Enter the following at a TACL prompt:
BATCHCOM;SUBMIT JOB, IN \NODE.$SYSTEM.SYSTEM.PROCESS, &
EVERY 10 * * * * mon-fri
For an example of using the TACL OSH command to execute a single OSS shell
command through the NetBatch product, see Controlling the Growth of Directories on
page 9-8. For more information on setting up and scheduling batch jobs, see the
NetBatch Manual or the NetBatch Plus Reference Manual.