From owner-freebsd-questions@FreeBSD.ORG Tue Mar 6 22:34:27 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 49BBB16A401 for ; Tue, 6 Mar 2007 22:34:27 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 02A7B13C4A3 for ; Tue, 6 Mar 2007 22:34:26 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l26MVYxQ011578; Tue, 6 Mar 2007 17:31:34 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l26MVY5C011577; Tue, 6 Mar 2007 17:31:34 -0500 (EST) (envelope-from jerrymc) Date: Tue, 6 Mar 2007 17:31:34 -0500 From: Jerry McAllister To: Drew Jenkins Message-ID: <20070306223133.GA11555@gizmo.acns.msu.edu> References: <333952.4302.qm@web62201.mail.re1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <333952.4302.qm@web62201.mail.re1.yahoo.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Setting Env X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 22:34:27 -0000 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 > To: Drew Jenkins > 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" >