Cron job fails for any time other than default * * * * *

Posted by Raghu on Ask Ubuntu See other posts from Ask Ubuntu or by Raghu
Published on 2012-05-29T13:13:55Z Indexed on 2012/06/08 16:49 UTC
Read the original article Hit count: 399

Filed under:

On Ubuntu 11.10 (Oneiric Ocelot), my cron job run fine if I use the default

* * * * *

But if I want it to run at 17 hrs or any other time, it never runs. My settings are:

00 17 * * * wget http://www.abc.com/a.php

I also tried:

00 17 * * * root wget http://www.abc.com/a.php

I also tried specifying the path. There is a carriage return, and I'm logged in as root

Here is my complete crontab:

TZ=Australia/Sydney
22 7 * * * /usr/bin/wget http://www.abc.com/a.php
22 7 * * * /bin/date >> /tmp/date.txt

----the out put is as follws:

root@Scrunch:~# sudo crontab -l -u root
55 12 * * * date >>/tmp/crontest.txt





root@Scrunch:~# 

Why is the terminal displaying so many blank lines after outputting the crontab entries? do you suspect unnecessary carriage lines are given....And i have not given any entries any other cron spaces like .d,/daily eyc.,

© Ask Ubuntu or respective owner

Related posts about cron