<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks Peter for the answer and the link. That helps.<br><br>Fred<br><br>--- On <b>Sun, 10/3/10, Peter Sutter <i><sutterp@sopac.com.au></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Peter Sutter <sutterp@sopac.com.au><br>Subject: Re: [plug] Where to set an environment variable in CentOS?<br>To: plug@plug.org.au<br>Date: Sunday, October 3, 2010, 10:53 PM<br><br><div class="plainMail">Fred Janon wrote:<br>> I installed Tomcat6 on a CentOS distrib and I need to set an environment variable as indicated here in a user's post:<br>> <br>> ------------------<br>> Add the $CATALINA_HOME environment variable to your PATH.<br>> # vi /etc/profile<br>> CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.19<br>> export CATALINA_HOME<br>> ------------------<br>> I
checked the /etc/profile file and it doesn't seem to be the best place to add it.<br>> <br>> What would be the best directory/file to actually set the variable so it is set globally when the system boots?<br>> <br>> Thanks<br>> <br>> Fred<br>> <br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> PLUG discussion list: <a ymailto="mailto:plug@plug.org.au" href="/mc/compose?to=plug@plug.org.au">plug@plug.org.au</a><br>> <a href="http://www.plug.org.au/mailman/listinfo/plug" target="_blank">http://www.plug.org.au/mailman/listinfo/plug</a><br>> Committee e-mail: <a ymailto="mailto:committee@plug.linux.org.au" href="/mc/compose?to=committee@plug.linux.org.au">committee@plug.linux.org.au</a><br>> <br>When bash is invoked as an interactive login shell, or as a non-interactive
shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.<br><br>When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file <<a href="http://www.linuxquestions.org/questions/#" target="_blank">http://www.linuxquestions.org/questions/#</a>> exists.<br><br>Peter<br>_______________________________________________<br>PLUG discussion list: <a ymailto="mailto:plug@plug.org.au" href="/mc/compose?to=plug@plug.org.au">plug@plug.org.au</a><br><a href="http://www.plug.org.au/mailman/listinfo/plug" target="_blank">http://www.plug.org.au/mailman/listinfo/plug</a><br>Committee e-mail: <a ymailto="mailto:committee@plug.linux.org.au"
href="/mc/compose?to=committee@plug.linux.org.au">committee@plug.linux.org.au</a><br></div></blockquote></td></tr></table>