From owner-freebsd-questions Tue Jun 4 18:10:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.mbox.com.au (203-134-146-019.cust.pth.iprimus.net.au [203.134.146.19]) by hub.freebsd.org (Postfix) with ESMTP id 0717737B401 for ; Tue, 4 Jun 2002 18:10:15 -0700 (PDT) Received: from nms2.mbox.com.au (webmail.mbox.com.au [192.168.20.4]) by smtp2.mbox.com.au (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GX700J6EKC3BP@smtp2.mbox.com.au> for freebsd-questions@FreeBSD.ORG; Wed, 5 Jun 2002 09:04:51 +0800 (WST) Received: from mbox.com.au ([127.0.0.1]) by nms2.mbox.com.au (Netscape Messaging Server 4.15) with ESMTP id GX7KF500.JXL for ; Wed, 05 Jun 2002 09:06:41 +0800 Date: Wed, 05 Jun 2002 11:06:41 +1000 From: BSD Freak Subject: Getting a DHCP client to give me it's address To: FreeBSD Questions Message-id: MIME-version: 1.0 X-Mailer: Netscape Webmail Content-type: text/plain; charset=us-ascii Content-language: en Content-disposition: inline Content-transfer-encoding: 7BIT X-Accept-Language: en 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 Hi all, I'm sure this is possible but not sure wherer to look. 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: I need it to run something like this: /usr/local/scripts/email-my-ip.sh $IP Thanks in advance..... --------------------------------------------------------------------- Faxes delivered directly to any email address, new to mBox! Find out more http://www.mbox.com.au/fax To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message