[lug] cron shell debian
Nick Golder
nrg at nirgo.net
Tue Aug 16 15:24:46 MDT 2005
On 2005-08-16 15:16 -0600, 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?
>
Have you tried setting the PATH at the start on your crontab?
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
--
-Nick Golder
More information about the LUG
mailing list