Cron vs. Command Line Problems
David Cary Hart
Fedora at TQMcube.com
Sat Aug 7 15:39:03 UTC 2004
On Sat, 2004-08-07 at 11:21, David Kramer wrote:
> > What am I missing?
>
> What you are missing is that both logrotate and cron are not you. More
> specifically, they do not have your environment variables, including $PATH.
> You must either set the PATH at the top of the crontab file, or use hard-coded
> paths for every file you specify. I recommend the latter.
>
> Trick #2: remember to redirect stdout and stderror of new crontab entries you
> are testing out, so you can see error messages.
>
Well put. Thanks.
More information about the fedora-list
mailing list