might be somewhat of a boring topic, but I was at it whole last night, cant seem to get it up and running.
root@host:~# /etc/init.d/cron status
Checking periodic command scheduler...done (running).
So the service seems to be running fine.
I have tried number of simple test cron jobs, but non of them worked:
* * * * * echo "Hello world !!!" 2&>1 >> /tmp/lol.log
05 06 * * mon-fri echo "Nightly Backup Successful: $(date)" >> /tmp/test.log
as well as that, one of the programers gave me this job, that i know is perfectly working on our current production server:
* * * * * wget -q -O /dev/null http://www.hostname.com/test/email_au
So in the end, non of them seem to be working,
I have been going throught a number of guides on the web, but non of them seem to help.
What could be missing ?
EDIT: The only cron related files in etc are: cron.d, cron.daily, cron.hourly, cron.monthly, cron.weekly, crontab. There is no cron.deny nor cron.allow files there. Also I am trying to run those cron jobs as root.
Best Answer
Have you checked cron logs as to what actually happened ?
Usually cron logs are disabled in debian system, enable this in your rsyslogd or syslogd by uncommenting cron log lines in respective configuration file.