1 |
Etaoin Shrdlu wrote: |
2 |
> On Monday 25 December 2006 15:02, Daniel Iliev wrote: |
3 |
> |
4 |
> |
5 |
>> grep -in proxy /etc/make.conf.example |
6 |
>> 144:# If you need to set a proxy for wget or lukemftp, add the |
7 |
>> appropriate "export |
8 |
>> 145:# ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to |
9 |
>> /etc/profile if |
10 |
>> |
11 |
>> |
12 |
>> So it appears "/etc/profile" is the appropriate file. |
13 |
>> |
14 |
> |
15 |
> I'm not sure that a cron job can see the variables set by /etc/profile. |
16 |
> IIRC, even PATH is unavailable to cron jobs. Only a few predefined |
17 |
> variables are set ($HOME, $SHELL and a few others which I don't recall |
18 |
> now). |
19 |
> |
20 |
|
21 |
|
22 |
It sounds logical and I think the vars available to cron are in |
23 |
/etc/crontab. There remains the other solution - to set the vars from |
24 |
the same script which runs wget. ;-) |
25 |
|
26 |
Thank you very much! |
27 |
|
28 |
-- |
29 |
Best regards, |
30 |
Daniel |
31 |
|
32 |
|
33 |
-- |
34 |
gentoo-user@g.o mailing list |