[lug] cron shell debian
Garett Shulman
shulmang at colorado.edu
Tue Aug 16 15:25:20 MDT 2005
I may be wrong but I think that cron runs without any environment
variables. This sounds like it may be the source of your problem. You
could modify your script to run like a daemon (with a sleep 3000s or
whatever) instead of as a cron job.
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?
>
> Gary
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG
mailing list