On 25 December 2006 20:31, Etaoin Shrdlu wrote:
> On Monday 25 December 2006 15:02, Daniel Iliev wrote:
> > grep -in proxy /etc/make.conf.example
> > 144:# If you need to set a proxy for wget or lukemftp, add the
> > appropriate "export
> > 145:# ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to
> > /etc/profile if
> >
> >
> > So it appears "/etc/profile" is the appropriate file.
>
> I'm not sure that a cron job can see the variables set by /etc/profile.
> IIRC, even PATH is unavailable to cron jobs. Only a few predefined
> variables are set ($HOME, $SHELL and a few others which I don't recall
> now).

So make the cronjob itself a shell script and set the variable in that script!

Uwe

-- 
A fast and easy generator of fractals for KDE:
http://www.SysEx.com.na/iwy-1.0.tar.bz2
-- 
gentoo-user@gentoo.org mailing list

Reply via email to