on Thu, Nov 29, 2001 at 09:22:46AM +1100, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:
> 
> I'll get to the point:
> 
> My system is behind a proxy at my ISP... everything I run that can use
> a proxy recognises http_proxy and ftp_proxy environment variables. 
> (apt-get, wget, lynx, etc)
> 
> So it seems logical to only need to set this in one place, right?
> 
> Where would that place be?
> 
> I tried /etc/environment - and that works for my login shells (bash
> as root, zsh as user) ... but isn't seen from scripts run from cron. 
> 
> Is there any recommended way to make a an environment truly global?
> Is there something I've missed?

RTFM:  man 5 crontab.

    An active line in a crontab will be either an environment setting or
    a cron command.  An environment setting  is  of the form,

        name = value

Set your cron environment in your crontab.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>       http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             Home of the brave
  http://gestalt-system.sourceforge.net/                   Land of the free
   Free Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire                     http://kmself.home.netcom.com/resume.html

Attachment: pgpbPo1pMYbQU.pgp
Description: PGP signature

Reply via email to