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.
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
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.
Summary: Hi Googly, Thanks once again.I need some more help. Since I am on the learning process,I find it a little tough to exactly understand the sequence/flow of this script. Can you explain me a little bit ...
Summary: WHen I try to open crontab for editing "crontab -e", I get a error as follows: crontab: fchown of temporary file failed Also, when I try to "man" any command, I get an error similar to the following: ...
Summary: I know enough here only to be dangerous, but need some help. I have a commercial SCO Unix program which is outputting data files with 4 fields, in .csv format. I need to convert and parse this da...