You are not logged in.
Pages: 1
Edit: Bwhawa, silly me! 01 * * * * is actually every 01:XX, that is, the first minute of every hour. Changed it to * * * * *, and now it works like a charm. Very typical, that after hours of troubleshooting, the solution emerges RIGHT after making the post! I'm sorry.
Hi!
I've been having trouble with getting cron to work. Never been in touch with cron before, so please go easy on me.
Problem: Cron is doing (apparently) nothing. I use dcron 4.4-2 and crontab 4.4.
Here are my crontab-files. These are supposed to write me a greeting every minute:
User:
01 * * * * /bin/echo Hello, world! > /home/simen/tmp/from_cron_user
Root:
# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD
# man 1 crontab for acceptable formats:
# <minute> <hour> <day> <month> <dow> <tags and command>
# <@freq> <tags and command>
# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly ID=sys-hourly /usr/sbin/run-cron /etc/cron.hourly
@daily ID=sys-daily /usr/sbin/run-cron /etc/cron.daily
@weekly ID=sys-weekly /usr/sbin/run-cron /etc/cron.weekly
@monthly ID=sys-monthly /usr/sbin/run-cron /etc/cron.monthly
01 * * * * /bin/echo Hello, world! > /home/simen/tmp/from_cron_root
Thing I've already done to try and diagnose:
- crond is running.
- crond is reading the correct crontab files (shows up in debug output from crond).
- /var/log/crond.log seems OK.
- Tried rebooting/restarting crond several times.
Last edited by ein (2010-07-05 15:11:57)
Offline
Pages: 1