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).
>   


It sounds logical and I think the vars available to cron are in
/etc/crontab. There remains the other solution - to set the vars from
the same script which runs wget. ;-)

Thank you very much!

-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list

Reply via email to