[lug] cron shell debian
Warren Sanders
warren at sandersonline.org
Tue Aug 16 15:21:56 MDT 2005
Gary Hodges wrote:
> I have a sarge install where a shell script works if I run it from the
> command line, but doesn't when run as a cron job. It has #!/bin/sh as
> the first line. If I put absolute paths in the shell script it
> works. How can I change this globally, rather than using explicit
> paths in the script?
>
Yes this is one way as one of the first lines in your crontab:
PATH=/usr/local/sbin:/usr/bin:/bin
More information about the LUG
mailing list