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