1 |
On 25 December 2006 20:31, Etaoin Shrdlu wrote: |
2 |
> On Monday 25 December 2006 15:02, Daniel Iliev wrote: |
3 |
> > grep -in proxy /etc/make.conf.example |
4 |
> > 144:# If you need to set a proxy for wget or lukemftp, add the |
5 |
> > appropriate "export |
6 |
> > 145:# ftp_proxy=<proxy>" and "export http_proxy=<proxy>" lines to |
7 |
> > /etc/profile if |
8 |
> > |
9 |
> > |
10 |
> > So it appears "/etc/profile" is the appropriate file. |
11 |
> |
12 |
> I'm not sure that a cron job can see the variables set by /etc/profile. |
13 |
> IIRC, even PATH is unavailable to cron jobs. Only a few predefined |
14 |
> variables are set ($HOME, $SHELL and a few others which I don't recall |
15 |
> now). |
16 |
|
17 |
So make the cronjob itself a shell script and set the variable in that script! |
18 |
|
19 |
Uwe |
20 |
|
21 |
-- |
22 |
A fast and easy generator of fractals for KDE: |
23 |
http://www.SysEx.com.na/iwy-1.0.tar.bz2 |
24 |
-- |
25 |
gentoo-user@g.o mailing list |