[lug] cron shell debian

Shannon Johnston sjohnston at cavionplus.com
Tue Aug 16 15:18:38 MDT 2005


I'm under the impression that cron doesn't have the luxury of
environment variables and paths set. So the easiest(?) way would be to
set those at the beginning of the script you are wanting to run.

I'm not a cron expert, so please someone correct me if I'm wrong.


Shannon



On Tue, 2005-08-16 at 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?
> 
> 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