Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2007 13:55:22 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Aryeh M. Friedman <aryeh.friedman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: [stupid question] setting env variables globally
Message-ID:  <9D00D54D-F7C9-4D38-973F-EB7A28933AC0@mac.com>
In-Reply-To: <4718D7D4.2010604@gmail.com>
References:  <4718D7D4.2010604@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 19, 2007, at 9:14 AM, Aryeh M. Friedman wrote:
> Is there any way to set the default value of a enviromental variable
> globally.   Specifically I want JAVA_VERSION to default to "1.6"  
> unless
> the user sets it other wise.   By global I mean no matter how  
> something
> is invoked (command line, script, GUI, IPC trigger, etc.) if it checks
> the value of the var it gets the same value (and I want to do this
> system wide)

Setting variables in /etc/profile and /etc/csh.cshrc (respectively)  
will do it for the common shells; or perhaps you might look at /etc/ 
login.conf...

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9D00D54D-F7C9-4D38-973F-EB7A28933AC0>