[NCLUG] /etc/environment

John L. Bass jbass at dmsd.com
Sun Aug 19 13:56:14 MDT 2007


bob at proulx.com (Bob Proulx) writes:
> Instead I believe the Right Thing to do here is to create an entry
> point that sets whatever environment may be necessary.
>
>   #!/bin/sh
>   export DEVELOPMENT_HOME=/usr/local/development
>   export JAVA_PROJECT_HOME=$DEVELOPMENT_HOME/Java/projects
>   exec myjavaprogram "$@"

I have a fair number of those kind of scripts on a few systems, and in
retrospect, it's a hell of a lot of editing when something needs to
change.

Have a single point of change, is by far better.

John



More information about the NCLUG mailing list