From owner-freebsd-questions Wed Jun 5 5: 8:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from axel.truedestiny.net (a185066.upc-a.chello.nl [62.163.185.66]) by hub.freebsd.org (Postfix) with ESMTP id 18D3037B401 for ; Wed, 5 Jun 2002 05:08:56 -0700 (PDT) Received: by axel.truedestiny.net (Postfix, from userid 1000) id 8F28A49AB2; Wed, 5 Jun 2002 14:08:57 +0200 (CEST) Date: Wed, 5 Jun 2002 14:08:57 +0200 From: Axel Scheepers To: BSD Freak Cc: FreeBSD Questions Subject: Re: Getting a DHCP client to give me it's address Message-ID: <20020605140857.B58030@mars.thuis> Reply-To: Axel Scheepers References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bsd-freak@mbox.com.au on Wed, Jun 05, 2002 at 11:06:41AM +1000 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 Wed, Jun 05, 2002 at 11:06:41AM +1000, BSD Freak wrote: > Is there any script that the FreeBSD DHCP client runs when it obtains > an IP address (something similar to ppp.linkup). I need to basically > run a script with the newly obatined IP address as an argument, eg: That should be /sbin/dhclient-script, you can provide some enter/exit hooks (don't modify that one, since it will break on an upgrade) to do what you want. See man dhclient for further info about it. > > I need it to run something like this: > > /usr/local/scripts/email-my-ip.sh $IP > > > Thanks in advance..... Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ In 1914, the first crossword puzzle was printed in a newspaper. The creator received $4000 down ... and $3000 across. ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message