Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange cron issue

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
Hello,

i have setup the following crontab entry:-

0 * * * 0,6 /usr/lib/sa/sa1
0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3

so this should be outputing data into /var/adm/sa starting at 08:00 finishing at 17:00 and this will run Monday to Friday. Now i'm getting data appearing but the times it starts at is 09:00 to 18:40!!!

the date on the server is perfectly ok, can someone point out if i'm doing something wrong here?

 
And what happens if you just put a little shell script in your crontab that echos `date` every minute from some point in time to another into a log file? Are the times shown in the log are correct?

laters
zaxxon
 
It depends how you output the binary data produced by the sa1 command!?!

see these links



check the -o flag in sar command


I hope this clarifies the case.

regards,
Khalid
 
hello,

I made a slight mistake!

I put the entry for the sa stuff in roots crontab file instead of the crontab file for sys. I have removed it from root and all seems fine now.

cheers

nick
 
me again,

it should be adm & not sys ( I work with Solaris)

all setup now and will wait to see what i get!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top