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 <[EMAIL PROTECTED]>
> To: Drew Jenkins <[EMAIL PROTECTED]>
> 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 "[EMAIL PROTECTED]"
> > 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 
> 
> 
> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> 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 "[EMAIL PROTECTED]"
> 
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to