[lug] CRON and PATH

Dan Ferris dan at usrsbin.com
Tue Mar 21 11:20:56 MST 2006


You can set variables in the crontab configuration file.

Or you can make a wrapper script for whatever you're trying to do.

Dan

Gordon Golding wrote:
> I'm not getting my Path when I run a backup out of cron.
>
> I'm root running on bash, when I sign on and echo PATH, I get my full path - set in /etc/bashrc.
> When I run a script from cron and echo PATH, I get /usr/bin:/bin - as if I didn't run  root/.bash_profile|.bashrc etc/bashrc
> I have many other machines which set path correctly out of cron.
> I compare the above files with a "good" machine and they are byte identical.   
> ???
>
> __________________________________________________________________
> Switch to Netscape Internet Service.
> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
>
> Netscape. Just the Net You Need.
>
> New! Netscape Toolbar for Internet Explorer
> Search from anywhere on the Web and block those annoying pop-ups.
> Download now at http://channels.netscape.com/ns/search/install.jsp
> _______________________________________________
> 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
>
>
>   

-- 
Chuck Norris doesn't sleep.  He waits.




More information about the LUG mailing list