[ale] cron question
Marvin, International Martian of Mystery
marvin.higginbottom at gmail.com
Sat Jun 10 09:54:03 EDT 2006
Geoffrey wrote:
> Geoffrey wrote:
>
>> Marvin, International Martian of Mystery wrote:
>>
>>> I have a cron job set to run thusly in my root crontab:
>>>
>>>
>>> [root at zminder root]# crontab -l
>>> # DO NOT EDIT THIS FILE - edit the master and reinstall.
>>> # (/tmp/crontab.12165 installed on Mon Apr 24 22:56:36 2006)
>>> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
>>> 0 1 * * * /var/www/html/zm/events/cleanup.sh
>>>
>>>
>>>
>>> As you can see it's supposed to run every morning at 1 AM. This is the
>>> script it's supposed to run:
>>>
>> I suspect that it's because you're using relative paths. If this is the
>> root crontab, it's going to cd in reference to $HOME for root which is
>> /root on most boxes. You should also fully qualify your calls to
>> binaries (/binrm).
>>
>
> That should have been (/bin/rm)... more coffee....
>
Thanks, Geoffry. I'll give that a try.
More information about the Ale
mailing list