Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


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

environment variable



On Sun, 18 Apr 2004 12:52:46 -0400
"D.E. Chadbourne" <235u at comcast.net> wrote:

> Chris Devers wrote:
> ...
> > Have you tried reading the error, and setting $JAVA_HOME ? :-)
> > 
> >     $ echo $JAVA_HOME
> >     $
> > 
> >     $ export JAVA_HOME="/Library/Java/Home"
> >     $
> > 
> >     $ echo $JAVA_HOME
> >     /Library/Java/Home
> >     $
> > 
> > Make sense?
> 
> this looks very cool but unfortunately i have no idea how to use echo
> in the way you suggest.  yes i'm lost.
> 
> > 
> > And why are you messing around in a root shell? Don't have sudo?
> > 
> 
> point taken.  i go root crazy sometimes when having to change stuff on
> 
> my pc.
The echoes, just test if JAVA_HOME is set. The first one shows it is
not, the second shows it is. 
In a bash script:
if [ "$JAVA_HOME" = "" ] then
	export JAVA_HOME="/Library/Java/Home"
fi




-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040418/e6b7a253/attachment.sig>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org