From owner-freebsd-questions@FreeBSD.ORG Tue Mar 6 19:35:54 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 185C616A401 for ; Tue, 6 Mar 2007 19:35:54 +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 DE18113C47E for ; Tue, 6 Mar 2007 19:35:53 +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 l26JX1nZ010553; Tue, 6 Mar 2007 14:33:01 -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 l26JX1Ee010552; Tue, 6 Mar 2007 14:33:01 -0500 (EST) (envelope-from jerrymc) Date: Tue, 6 Mar 2007 14:33:01 -0500 From: Jerry McAllister To: Drew Jenkins Message-ID: <20070306193301.GA10514@gizmo.acns.msu.edu> References: <86221.5189.qm@web62202.mail.re1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86221.5189.qm@web62202.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 19:35:54 -0000 On Tue, Mar 06, 2007 at 11:21:19AM -0800, Drew Jenkins wrote: > 20Hi; > For some reason, I need to run this: > > setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ > > to get my Zope instances up and running. I'm trying to figure out how to > automate that. I wrote a little script: > > #!/bin/csh > setenv LD_LIBRARY_PATH /usr/local/lib/mysql/ > > and put it here: > > /usr/local/etc/rc.d/mysql_setenv > chmod +x /usr/local/etc/rc.d/mysql_setenv > > I can run that little script with no errors. However, it *doesn't* set > the environment! > > # echo $shell > # csh > > What gives? 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. ////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" >