crontab

Thibaut thibaut at fuse.co.uk
Wed Jan 31 18:22:32 UTC 2007


On Jan 31, 2007, at 5:59 PM, DJ Delorie wrote:

>
> Thibaut <thibaut at fuse.co.uk> writes:
>> Then I past "*/15 8-18 * * 1-5 parse.sh 2>/dev/null 1>/dev/null"
>
> For testing, you should NOT redirect stdout or stderr.  That way, you
> can see what it's doing.  After it's working correctly, *then* you can
> discard the output.
>
>> Then I exit and have the message : "crontab: installing new crontab"
>
> Normal.
>
>> When I'm logged as root I can execute normaly : "./parse.sh"
>
> Note that (1) you're not passing the same command line as the crontab,
> and (2) you're not in the same working directory as the crontab.  You
> probably don't have the same $PATH either.
>
>> Where I am wrong ?
>
> Likely, you need to make the crontab line something like this:
>
> */15 8-18 * * 1-5 /root/parse.sh
>
> Note the explicit path.  Also, parse.sh might need to do a "cd /root"
> so that it's in the directory it wants to be in.

Thank you !








More information about the users mailing list