From owner-freebsd-questions Tue Feb 26 7: 2:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id C85F237B405 for ; Tue, 26 Feb 2002 07:02:17 -0800 (PST) Received: from blackbox.pacbell.net ([64.166.84.201]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GS5000X6B3TR7@mta5.snfc21.pbi.net> for freebsd-questions@freebsd.org; Tue, 26 Feb 2002 07:02:17 -0800 (PST) Received: (from mikem@localhost) by blackbox.pacbell.net (8.11.6/8.11.6) id g1QF2KX07869; Tue, 26 Feb 2002 07:02:20 -0800 Date: Tue, 26 Feb 2002 07:02:20 -0800 From: Mike Makonnen Subject: Re: System-wide environment variables In-reply-to: <20020226051544.GC1931@raggedclown.net> To: Cliff Sarginson Cc: freebsd-questions@freebsd.org Message-id: <1014735740.677.25.camel@blackbox.pacbell.net> MIME-version: 1.0 X-Mailer: Evolution/1.0.2 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable References: <20020226030324.4a94cc33.doktorn@realworld.nu> <1014689577.677.0.camel@blackbox.pacbell.net> <20020226025447.GA21944@dan.emsphone.com> <1014696241.677.5.camel@blackbox.pacbell.net> <20020226051544.GC1931@raggedclown.net> X-Authentication-warning: blackbox.pacbell.net: mikem set sender to mike_makonnen@yahoo.com using -f Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 2002-02-25 at 21:15, Cliff Sarginson wrote: > On Mon, Feb 25, 2002 at 08:04:01PM -0800, Mike Makonnen wrote: > > On Mon, 2002-02-25 at 18:54, Dan Nelson wrote: > > > In the last episode (Feb 25), Mike Makonnen said: > > > > On Mon, 2002-02-25 at 18:03, Rickard Borgm=E4ster wrote: > > > > =20 > > > > > Where should i put this? Into rc.conf.local or something maybe? > > > >=20 > > > > .login > > >=20 > > > That only works if you use /bin/sh as your shell. =20 > >=20 > > or csh/tcsh (which is the same thing now). > >=20 > Nope. ".login" is only used by the (t)csh. > That does not answer the question, which is how to set global > environment variables that are there without having to login > to get them set.=20 I can't remember if that's what he wanted or not. If it is then you're right .login/.profile/login.conf won't help. > Any such program will inherit the exported environment > from it's parent process. Examination of /etc/rc will lead > you to see what they will be for startup daemons and such like. > Examination of the non-interactive behaviour of a shell startup > script (if one is used) will tell you what that environment will > be. Use of the "env" command may also help. I can't remember what he originally wanted this for, but the solution might be to put whatever he needs this for in a wrapper script.=20 cheers, mike makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message