Discussion:
How to schedule cron job in batchcom
(too old to reply)
c***@gmail.com
2019-04-10 03:22:05 UTC
Permalink
Hello All,

Does anyone have any reference document or link which can help me with scheduling a cron job in batchcom utility.
Please help.
Randall
2019-04-10 19:33:36 UTC
Permalink
Post by c***@gmail.com
Hello All,
Does anyone have any reference document or link which can help me with scheduling a cron job in batchcom utility.
Please help.
Scheduling cron jobs is done by editing the crontab file. See 'man cron' for details. It is unrelated to batchcom.
d***@gmail.com
2019-04-10 20:34:31 UTC
Permalink
Post by Randall
Post by c***@gmail.com
Hello All,
Does anyone have any reference document or link which can help me with scheduling a cron job in batchcom utility.
Please help.
Scheduling cron jobs is done by editing the crontab file. See 'man cron' for details. It is unrelated to batchcom.
I had the same thought, but then it occurred to me that maybe the OP is trying to use BATCHCOM instead of cron so all jobs are managed from a single Guardian location. I would try something like this:

osh -c "<program name> [-p1 param1] [-p2 param2] [etc.]"

If you want output you may want to look into running an OSSTTY process.

Dave
wbreidbach
2019-04-11 08:16:09 UTC
Permalink
Post by d***@gmail.com
Post by Randall
Post by c***@gmail.com
Hello All,
Does anyone have any reference document or link which can help me with scheduling a cron job in batchcom utility.
Please help.
Scheduling cron jobs is done by editing the crontab file. See 'man cron' for details. It is unrelated to batchcom.
osh -c "<program name> [-p1 param1] [-p2 param2] [etc.]"
If you want output you may want to look into running an OSSTTY process.
Dave
We had some OSS batches running unter control of NetBatch. To get the thing running was a bit tricky, finally we had the following solution, the example shows a pax execution as part of a TACL macro:

osh /jobid 0,term $zhome/-osstty -c "pax -w -v -f /G/[:used_disk]/mydir/conf /mydir/conf 2>/G/[:used_disk]/mydir/cnflist" >/listout

The really important things are the parameter jobid and the -osstty, without these parameters it did not work.
c***@gmail.com
2019-04-17 07:13:50 UTC
Permalink
Thank you everyone. I have scheduled the job with crontab.

Loading...