Computing.Net > Forums > Unix > Crontab Help???

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Crontab Help???

Reply to Message Icon

Name: JD
Date: July 1, 2002 at 15:36:38 Pacific
Comment:

Hi,
I've created a script that checks some stuff, writes the results to a log file, then mails the log file to me. I've set up the crontab file to run the script everyday at 5:58am, 58 05 * * * /usr/local/bin/checksysstats.sh, problem is it seems to run 3 times, sending the log file at 5:58am, 6:00am, and 6:15am. Any tips on what is causing this or how to fix it? Thanks JD,
PS you can email your reply to jdavidw13@hotmail.com



Sponsored Link
Ads by Google

Response Number 1
Name: frank
Date: July 3, 2002 at 02:17:22 Pacific
Reply:

How do you modiefyed the crontab ?

check the crontab for special caracter
also check for unneded empty lines ?
Do you got mail from the crontab deamon ?

Do know to much of the content of your script but when do you create the log file ? at the beginning of the script or at the end ?

Inside of the crontab make a redirection of the stdout and stderror to a file and check if there are any additional messages.

No RISK no fun

Frank


0

Response Number 2
Name: frank
Date: July 3, 2002 at 06:26:26 Pacific
Reply:

Also provied output from cron log file.
depending on your OS it could be located:
AIX /var/adm/cron/log
HP-UX /usr/lib/cron/log
in case of solaris provied syslog if configured.

No RISK no fun
Frank


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Korn shell script doubt ?... script to send email/shut...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Crontab Help???

Unix script help www.computing.net/answers/unix/unix-script-help/6110.html

Error trying to edit crontab www.computing.net/answers/unix/error-trying-to-edit-crontab/6719.html

help parsing data into a vCal item www.computing.net/answers/unix/help-parsing-data-into-a-vcal-item/5123.html