From owner-freebsd-questions Mon Feb 25 21:15:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id B2F9337B417 for ; Mon, 25 Feb 2002 21:15:48 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16fZxr-0004m6-00 for freebsd-questions@freebsd.org; Tue, 26 Feb 2002 05:15:47 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id 1F89D13040 for ; Tue, 26 Feb 2002 06:15:46 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 1005) id 0A85122593; Tue, 26 Feb 2002 06:15:45 +0100 (CET) Date: Tue, 26 Feb 2002 06:15:44 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: System-wide environment variables Message-ID: <20020226051544.GC1931@raggedclown.net> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1014696241.677.5.camel@blackbox.pacbell.net> User-Agent: Mutt/1.3.27i 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, 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äster wrote: > > > > > > > Where should i put this? Into rc.conf.local or something maybe? > > > > > > .login > > > > That only works if you use /bin/sh as your shell. > > or csh/tcsh (which is the same thing now). > 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. 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. -- Regards Cliff Sarginson -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message