Re: Create a new system variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthew Benjamin wrote:

I really appreciate the GOOD suggestions I tried it however it still
does not work. Do you think it's a bug in Fedora Core 1? I tried Keven
and Martin's suggestions also to no avail. All of these work from just a
command line but once in the cron it flakes out.




Hum..  Works for me:

[keven@localhost keven]$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.5046 installed on Thu Apr  8 15:49:20 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
http_proxy=http://foobar.com:80/
* * * * *       /usr/bin/printenv

This says to print the environment every minute [that way you don't have to wait too long]. In a minute, you should get an email to your local account. This was the contents of my email:

From keven@xxxxxxxxxxxxxxxxxxxxx  Thu Apr  8 15:51:01 2004
Date: Thu, 8 Apr 2004 15:51:01 -0400
From: root@xxxxxxxxxxxxxxxxxxxxx (Cron Daemon)
To: keven@xxxxxxxxxxxxxxxxxxxxx
Subject: Cron <keven@localhost> /usr/bin/printenv
X-Cron-Env: <http_proxy=http://foobar.com:80/>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/keven>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=keven>

SHELL=/bin/sh
http_proxy=http://foobar.com:80/
PATH=/usr/bin:/bin
PWD=/home/keven
SHLVL=1
HOME=/home/keven
LOGNAME=keven
_=/usr/bin/printenv


As you can see, http_proxy is most definately set....

--
Keven Ring               | "Oh no,  Not Again..."
The MITRE Corporation    |   Bowl of Petunias -
7515 Colshire Drive      |   The Hitchhikers Guide to the Galaxy
McLean VA 22102-7508     |
PH: (703)883-7026        |





[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux