Re: global environment variables?
> On Sun, Dec 02, 2001 at 02:51:27PM -0800, Peter Hicks wrote:
> > On Sunday 02 December 2001 14:01, dman wrote:
> > > On Sun, Dec 02, 2001 at 01:02:50PM -0800, Thomas Zimmerman wrote:
> > > | On 03-Dec 01:23, firstname.lastname@example.org wrote:
> > > | > This I aready know. ...but seeing as I didn't ask "how do I set an
> > > | > environment for my cronjobs" but "how do a set a GLOBAL evironment for
> > > | > the entire system", it doesn't actually help me much. :)
> > > |
> > > | [snip other answer}
> > > |
> > > | Just slip it in /etc/profile.
> > >
> > > This only works for shells that read /etc/profile (login shells).
> > > What Nemo and I are looking for is a way to set the environment for
> > > apps run via the panel (that don't have a login shell).
> > >
> > > -D
> > What about /etc/environment?
> 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 cron is a bit special since it specifically only set very
limited environment (as documented on manpage). If you want some
specific environment for cronjob I guess you have to set it right there,
by sourcing some file or by setting it with cron job program/script.
other than that /etc/environment should cover most of your needs.