Date: Tue, 06 Mar 2007 21:02:01 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-questions@freebsd.org Subject: Re: Setting Env Message-ID: <45EE4749.8080808@u.washington.edu> In-Reply-To: <812894.39097.qm@web62205.mail.re1.yahoo.com> References: <812894.39097.qm@web62205.mail.re1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Drew Jenkins wrote: > ----- Original Message ---- > From: Jerry McAllister <jerrymc@msu.edu> > To: Drew Jenkins <drewjenkinsjr@yahoo.com> > Cc: freebsd-questions@freebsd.org > Sent: Tuesday, March 6, 2007 7:46:26 PM > Subject: Re: Setting Env > >> If you want the environment variable to >> be set for something that is taking place in the script, then >> that variable must either be set in a durable way in the parent >> environment or be set right there in the script that is using it. >> The rc.conf method will make it available from the parent. >> That is the whole point of rc.conf. > > Right. I figured that much. So, what do I actually put in that file? I tried these two options: > > setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ > > export LD_LIBRARY_PATH="/usr/local/lib/mysql/" > > > It didn't like either, presumably because it's not calling a bash or c-shell. So, what should I put in /etc/rc.conf that will achieve my objective? > TIA, > Drew LD_LIBRARY_PATH=/usr/local/lib/mysql/ not work for you? Why not source environment variables from an outside script / rc-file? It's better / smarter in the long run, IMHO. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45EE4749.8080808>