Quote:
Originally posted by brentos
I will try changing it to a more standard method that you suggest, I just used that cause one of the other scripts in that directory has the same format for its 10 minute run so I just thought it was ok.
Now do I have to do anything to tell cron that the script in in /etc/cron.d?
The Redhat docs just said it checks it every minute, but how can I tell?
|
You could check to see if cron is running every minute by doing the following:
crontab -e
add the following line:
* * * * * date >> /tmp/cron_test.junk
wait a minute or two then check the /tmp/cron_test.junk file
--> cat /tmp/cron_test.junk
Fri Dec 12 13:35:00 MST 2003
Fri Dec 12 13:36:01 MST 2003
You also should be able to do a ps -ef | grep cron and see the crond process running...
Oh yea you might want to comment out the line with a # if you don't want to make a big file when you are done...
BTW thanks for the info about the /10 option I didn't know that one...