AidanEnos
MIS
- Dec 11, 2000
- 189
Running Solaris, I have a file called "pinger" that I'd like to run 4 times daily 03:00 09:00 15:00 21:00, these jobs should be launched by a script called schedule that runs just before midnight.
at 11:50pm schedule
filename = schedule
at 03:00am tomorrow pinger
at 09:00am tomorrow pinger
at 15:00am tomorrow pinger
at 21:00am tomorrow pinger
at 11:50pm tomorrow schedule
As you can see my time syntax is the issue, what EXACTLY should my syntax be for scheduling these jobs?
Since I'm asking.... pinger does a ping to a list of nodes (/etc/hosts), and outputs and appends to a file, I've just made a default file name. How can I make each job create a file name...
set FILENAME=`%m%d%t.log`
I'd like it to look like 11210300.log for the first one, help on either is greatly appreciated.
at 11:50pm schedule
filename = schedule
at 03:00am tomorrow pinger
at 09:00am tomorrow pinger
at 15:00am tomorrow pinger
at 21:00am tomorrow pinger
at 11:50pm tomorrow schedule
As you can see my time syntax is the issue, what EXACTLY should my syntax be for scheduling these jobs?
Since I'm asking.... pinger does a ping to a list of nodes (/etc/hosts), and outputs and appends to a file, I've just made a default file name. How can I make each job create a file name...
set FILENAME=`%m%d%t.log`
I'd like it to look like 11210300.log for the first one, help on either is greatly appreciated.