* [gentoo-user] gentoo and proxy variable
@ 2006-12-25 12:24 Daniel Iliev
2006-12-25 12:44 ` Mike Williams
2006-12-25 19:06 ` [gentoo-user] [SOLVED] Daniel Iliev
0 siblings, 2 replies; 14+ messages in thread
From: Daniel Iliev @ 2006-12-25 12:24 UTC (permalink / raw
To: gentoo-user
Hi,
Where is it most appropriate to set ftp_proxy and http_proxy environment
variables on Gentoo in order to use a proxy server with wget *when it is
used by emerge from a cron job*?
I want to make an "emerge --fetchonly" cron job which downloads through
a squid server. Actually the ftp_proxy variable is important in this
case because the whole traffic on port 80 is transparently redirected to
the proxy.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] gentoo and proxy variable
2006-12-25 12:24 [gentoo-user] gentoo and proxy variable Daniel Iliev
@ 2006-12-25 12:44 ` Mike Williams
2006-12-25 13:23 ` Daniel Iliev
2006-12-25 19:06 ` [gentoo-user] [SOLVED] Daniel Iliev
1 sibling, 1 reply; 14+ messages in thread
From: Mike Williams @ 2006-12-25 12:44 UTC (permalink / raw
To: gentoo-user
On Monday 25 December 2006 12:24, Daniel Iliev wrote:
> Where is it most appropriate to set ftp_proxy and http_proxy environment
> variables on Gentoo in order to use a proxy server with wget *when it is
> used by emerge from a cron job*?
>
> I want to make an "emerge --fetchonly" cron job which downloads through
> a squid server. Actually the ftp_proxy variable is important in this
> case because the whole traffic on port 80 is transparently redirected to
> the proxy.
/etc/make.conf
It's sourced as a bash script.
--
Mike Williams
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] gentoo and proxy variable
2006-12-25 12:44 ` Mike Williams
@ 2006-12-25 13:23 ` Daniel Iliev
2006-12-25 14:02 ` [gentoo-user] [SOLVED] " Daniel Iliev
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: Daniel Iliev @ 2006-12-25 13:23 UTC (permalink / raw
To: gentoo-user
Mike Williams wrote:
> On Monday 25 December 2006 12:24, Daniel Iliev wrote:
>
>> Where is it most appropriate to set ftp_proxy and http_proxy environment
>> variables on Gentoo in order to use a proxy server with wget *when it is
>> used by emerge from a cron job*?
>>
>> I want to make an "emerge --fetchonly" cron job which downloads through
>> a squid server. Actually the ftp_proxy variable is important in this
>> case because the whole traffic on port 80 is transparently redirected to
>> the proxy.
>>
>
> /etc/make.conf
> It's sourced as a bash script.
>
>
Thanks a lot!
That will do the job for emerge. What if I want to schedule some other
downloading with cron?
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-25 13:23 ` Daniel Iliev
@ 2006-12-25 14:02 ` Daniel Iliev
2006-12-25 18:31 ` Etaoin Shrdlu
2006-12-25 14:14 ` [gentoo-user] " Etaoin Shrdlu
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: Daniel Iliev @ 2006-12-25 14:02 UTC (permalink / raw
To: gentoo-user
Daniel Iliev wrote:
> Mike Williams wrote:
>
>> On Monday 25 December 2006 12:24, Daniel Iliev wrote:
>>
>>
>>> Where is it most appropriate to set ftp_proxy and http_proxy environment
>>> variables on Gentoo in order to use a proxy server with wget *when it is
>>> used by emerge from a cron job*?
>>>
>>> I want to make an "emerge --fetchonly" cron job which downloads through
>>> a squid server. Actually the ftp_proxy variable is important in this
>>> case because the whole traffic on port 80 is transparently redirected to
>>> the proxy.
>>>
>>>
>> /etc/make.conf
>> It's sourced as a bash script.
>>
>>
>>
>
> Thanks a lot!
>
> That will do the job for emerge. What if I want to schedule some other
> downloading with cron?
>
>
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.
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] gentoo and proxy variable
2006-12-25 13:23 ` Daniel Iliev
2006-12-25 14:02 ` [gentoo-user] [SOLVED] " Daniel Iliev
@ 2006-12-25 14:14 ` Etaoin Shrdlu
2006-12-25 15:39 ` Uwe Thiem
2006-12-25 18:30 ` Boyd Stephen Smith Jr.
3 siblings, 0 replies; 14+ messages in thread
From: Etaoin Shrdlu @ 2006-12-25 14:14 UTC (permalink / raw
To: gentoo-user
On Monday 25 December 2006 14:23, Daniel Iliev wrote:
> That will do the job for emerge. What if I want to schedule some other
> downloading with cron?
Can't you just use a bash script that sets the variables and then runs
the download (wget)? Something like
$ cat download.sh
#!/bin/bash
export ftp_proxy=ftp.proxy.tld
export http_proxy=http.proxy.tld
wget <url>
----
and then schedule download.sh to be run by cron?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] gentoo and proxy variable
2006-12-25 13:23 ` Daniel Iliev
2006-12-25 14:02 ` [gentoo-user] [SOLVED] " Daniel Iliev
2006-12-25 14:14 ` [gentoo-user] " Etaoin Shrdlu
@ 2006-12-25 15:39 ` Uwe Thiem
2006-12-25 18:30 ` Boyd Stephen Smith Jr.
3 siblings, 0 replies; 14+ messages in thread
From: Uwe Thiem @ 2006-12-25 15:39 UTC (permalink / raw
To: gentoo-user
On 25 December 2006 15:23, Daniel Iliev wrote:
> Mike Williams wrote:
> > On Monday 25 December 2006 12:24, Daniel Iliev wrote:
> >> Where is it most appropriate to set ftp_proxy and http_proxy environment
> >> variables on Gentoo in order to use a proxy server with wget *when it is
> >> used by emerge from a cron job*?
> >>
> >> I want to make an "emerge --fetchonly" cron job which downloads through
> >> a squid server. Actually the ftp_proxy variable is important in this
> >> case because the whole traffic on port 80 is transparently redirected to
> >> the proxy.
> >
> > /etc/make.conf
> > It's sourced as a bash script.
>
> Thanks a lot!
>
> That will do the job for emerge. What if I want to schedule some other
> downloading with cron?
~/.bashrc
--
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-25 18:31 ` Etaoin Shrdlu
@ 2006-12-25 18:19 ` Uwe Thiem
2006-12-25 19:18 ` Etaoin Shrdlu
2006-12-25 18:48 ` Daniel Iliev
1 sibling, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2006-12-25 18:19 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] gentoo and proxy variable
2006-12-25 13:23 ` Daniel Iliev
` (2 preceding siblings ...)
2006-12-25 15:39 ` Uwe Thiem
@ 2006-12-25 18:30 ` Boyd Stephen Smith Jr.
3 siblings, 0 replies; 14+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-12-25 18:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 474 bytes --]
On Monday 25 December 2006 07:23, Daniel Iliev <danny@ilievnet.com> wrote
about 'Re: [gentoo-user] gentoo and proxy variable':
> That will do the job for emerge. What if I want to schedule some other
> downloading with cron?
man 5 crontab
--
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-25 14:02 ` [gentoo-user] [SOLVED] " Daniel Iliev
@ 2006-12-25 18:31 ` Etaoin Shrdlu
2006-12-25 18:19 ` Uwe Thiem
2006-12-25 18:48 ` Daniel Iliev
0 siblings, 2 replies; 14+ messages in thread
From: Etaoin Shrdlu @ 2006-12-25 18:31 UTC (permalink / raw
To: gentoo-user
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).
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-25 18:31 ` Etaoin Shrdlu
2006-12-25 18:19 ` Uwe Thiem
@ 2006-12-25 18:48 ` Daniel Iliev
1 sibling, 0 replies; 14+ messages in thread
From: Daniel Iliev @ 2006-12-25 18:48 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED]
2006-12-25 12:24 [gentoo-user] gentoo and proxy variable Daniel Iliev
2006-12-25 12:44 ` Mike Williams
@ 2006-12-25 19:06 ` Daniel Iliev
1 sibling, 0 replies; 14+ messages in thread
From: Daniel Iliev @ 2006-12-25 19:06 UTC (permalink / raw
To: gentoo-user
Daniel Iliev wrote:
> Hi,
>
> Where is it most appropriate to set ftp_proxy and http_proxy environment
> variables on Gentoo in order to use a proxy server with wget *when it is
> used by emerge from a cron job*?
>
> I want to make an "emerge --fetchonly" cron job which downloads through
> a squid server. Actually the ftp_proxy variable is important in this
> case because the whole traffic on port 80 is transparently redirected to
> the proxy.
>
>
Thanks, guys! The problem is solved! ;-)
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-25 18:19 ` Uwe Thiem
@ 2006-12-25 19:18 ` Etaoin Shrdlu
2006-12-26 5:45 ` Uwe Thiem
0 siblings, 1 reply; 14+ messages in thread
From: Etaoin Shrdlu @ 2006-12-25 19:18 UTC (permalink / raw
To: gentoo-user
On Monday 25 December 2006 19:19, Uwe Thiem wrote:
> So make the cronjob itself a shell script and set the variable in that
> script!
Yes, that's what I said two posts above :-)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-25 19:18 ` Etaoin Shrdlu
@ 2006-12-26 5:45 ` Uwe Thiem
2006-12-26 11:30 ` Daniel Iliev
0 siblings, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2006-12-26 5:45 UTC (permalink / raw
To: gentoo-user
On 25 December 2006 21:18, Etaoin Shrdlu wrote:
> On Monday 25 December 2006 19:19, Uwe Thiem wrote:
> > So make the cronjob itself a shell script and set the variable in that
> > script!
>
> Yes, that's what I said two posts above :-)
Only, I sent mine 4 hours before you. At times, it takes quite a while until
my message show up. ;-)
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] gentoo and proxy variable
2006-12-26 5:45 ` Uwe Thiem
@ 2006-12-26 11:30 ` Daniel Iliev
0 siblings, 0 replies; 14+ messages in thread
From: Daniel Iliev @ 2006-12-26 11:30 UTC (permalink / raw
To: gentoo-user
Uwe Thiem wrote:
> On 25 December 2006 21:18, Etaoin Shrdlu wrote:
>
>> On Monday 25 December 2006 19:19, Uwe Thiem wrote:
>>
>>> So make the cronjob itself a shell script and set the variable in that
>>> script!
>>>
>> Yes, that's what I said two posts above :-)
>>
>
> Only, I sent mine 4 hours before you. At times, it takes quite a while until
> my message show up. ;-)
>
> Uwe
>
>
Yep. Just as I suspected. This explains why your and Etaoin's replies
mostly cover each other. From my point of view your messages came after
Etaoin's. It happens. ;-)
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-12-26 11:37 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-25 12:24 [gentoo-user] gentoo and proxy variable Daniel Iliev
2006-12-25 12:44 ` Mike Williams
2006-12-25 13:23 ` Daniel Iliev
2006-12-25 14:02 ` [gentoo-user] [SOLVED] " Daniel Iliev
2006-12-25 18:31 ` Etaoin Shrdlu
2006-12-25 18:19 ` Uwe Thiem
2006-12-25 19:18 ` Etaoin Shrdlu
2006-12-26 5:45 ` Uwe Thiem
2006-12-26 11:30 ` Daniel Iliev
2006-12-25 18:48 ` Daniel Iliev
2006-12-25 14:14 ` [gentoo-user] " Etaoin Shrdlu
2006-12-25 15:39 ` Uwe Thiem
2006-12-25 18:30 ` Boyd Stephen Smith Jr.
2006-12-25 19:06 ` [gentoo-user] [SOLVED] Daniel Iliev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox