From owner-freebsd-questions Tue Nov 6 15:26:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from snipe.prod.itd.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 021F437B405 for ; Tue, 6 Nov 2001 15:26:11 -0800 (PST) Received: from dialup-209.245.132.32.dial1.sanjose1.level3.net ([209.245.132.32] helo=blossom.cjclark.org) by snipe.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 161Fbd-00061A-00; Tue, 06 Nov 2001 15:26:10 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fA6NPiD02650; Tue, 6 Nov 2001 15:25:44 -0800 (PST) (envelope-from cjc) Date: Tue, 6 Nov 2001 15:25:44 -0800 From: "Crist J. Clark" To: Sean Ellis Cc: Zev Thompson , Scott Nolde , freebsd-questions@FreeBSD.ORG Subject: Re: ipfw script values Message-ID: <20011106152544.F386@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <3.0.32.20011106123552.00db8e40@pop.interchange.ubc.ca> <20011106141846.C386@blossom.cjclark.org> <179093989.20011106145020@intergate.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <179093989.20011106145020@intergate.ca>; from sellis@intergate.ca on Tue, Nov 06, 2001 at 02:50:20PM -0800 X-URL: http://people.freebsd.org/~cjc/ 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 Tue, Nov 06, 2001 at 02:50:20PM -0800, Sean Ellis wrote: [snip] > I have a couple of related questions. Since I have more than one > script I was hoping to be able define an enviromental variable that I > could check really easily in case I forget which was the last script > that ran; ie. 'echo $FW'. Nothing I've tried so far works. I've added > the line 'echo $0 > /var/run/firewall', which is good, but I'd like to > know why my attempts to export the value failed. I don't think a child can change the parent's environment. > Also, the DHCP client on my Slackware box executes a script when the > ip changes, does the FreeBSD dhcp client have the same function. I > couldn't find it when I looked, thanks, dhclient-script(8). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message