Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2007 17:31:34 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Drew Jenkins <drewjenkinsjr@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setting Env
Message-ID:  <20070306223133.GA11555@gizmo.acns.msu.edu>
In-Reply-To: <333952.4302.qm@web62201.mail.re1.yahoo.com>
References:  <333952.4302.qm@web62201.mail.re1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 06, 2007 at 01:11:37PM -0800, Drew Jenkins wrote:

> Bill Campbell wrote:
> 
> << that I should edit said line into /etc/ld.so.conf >>
> 
> Unfortunately there is no such file on my system.
> 
> ----- Original Message ----
> From: Jerry McAllister <jerrymc@msu.edu>
> To: Drew Jenkins <drewjenkinsjr@yahoo.com>
> Cc: freebsd-questions@freebsd.org
> Sent: Tuesday, March 6, 2007 3:33:01 PM
> Subject: Re: Setting Env
> 
> >I think does the setenv for the shell started for that script only.
> >Once the script is finished, that goes away.   You either need to 
> >put it in the script where you want to use the value or in your .cshrc 
> >file so it is in your main environment.
> 
> I tried adding its bash variant to /usr/local/etc/rc.d/mysql-server but 
> that didn't work. As far as adding it to my shell, that won't run the 
> script when the server reboots, only when I log in, right? That's not 
> an option. 

I don't know for sure what you mean That's not an option.   Is this
running from cron or at system bootup or something so there is no login
involved?

In those cases, it is well documented that your scripts have to be
completely responsible for their environments and paths, etc.  So,
set everything within the scipt.   Or, if it is something systemwide,
then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if
you let your system have one.

////jerry

> 
> Any other ideas?
> TIA,
> Drew
> ////jerry
> 
> > TIA,
> > Drew
> > 
> > 
> > 
> > 
> >  
> > ____________________________________________________________________________________
> > Looking for earth-friendly autos? 
> > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> > http://autos.yahoo.com/green_center/
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> > 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> 
> 
> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> Don't get soaked.  Take a quick peek at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070306223133.GA11555>