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

Re: global environment variables?



nemo@cheeky.house.cx wrote:

> I put "FOO=blah" in /etc/environment and restarted crond, then I setup a
> small script executed from cron which simply did `echo $FOO`
> 
> Result? nope. I'm afraid /etc/environment isn't that global. 

AFAIK, crond has nothing to do with /etc/environment. That file is read
by the X session startup scripts when you login. So the right test would
have been to set FOO=something in /etc/environment, then logout and login
again.

How this relates to non-graphical logins, or even non-gdm logins, I do
not know.

Craig



Reply to: