[lug] cron shell debian
Hugh Brown
hugh at math.byu.edu
Tue Aug 16 15:33:32 MDT 2005
As noted already, I don't think cron runs with the regular user
environment. This is a good thing. You don't accidentally invoke some
script or other nasty.
You could certainly run
env
set
in your script to see what is getting set. Ultimately, you should set the
minimal environment variables that you need to get things done.
Hugh
On Tue, 16 Aug 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?
>
> 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