From owner-freebsd-questions@FreeBSD.ORG Wed Jun 6 14:21:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C631106566C for ; Wed, 6 Jun 2012 14:21:54 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id AB7E88FC16 for ; Wed, 6 Jun 2012 14:21:53 +0000 (UTC) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.50]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id F14A8A717DD for ; Wed, 6 Jun 2012 10:21:46 -0400 (EDT) Received: (qmail 7108 invoked from network); 6 Jun 2012 14:21:46 -0000 Received: by simscan 1.4.0 ppid: 16224, pid: 23097, t: 0.1651s scanners: clamav: 0.88.2/m:52/d:10739 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Jun 2012 14:21:46 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 8C68333C24; Wed, 6 Jun 2012 10:21:45 -0400 (EDT) From: Lowell Gilbert To: =?iso-8859-1?Q?D=E1nielisz_L=E1szl=F3?= References: <1338973608.78319.YahooMailNeo@web162906.mail.bf1.yahoo.com> Date: Wed, 06 Jun 2012 10:21:44 -0400 In-Reply-To: <1338973608.78319.YahooMailNeo@web162906.mail.bf1.yahoo.com> (=?iso-8859-1?Q?=22D=E1nielisz_L=E1szl=F3=22's?= message of "Wed, 6 Jun 2012 02:06:48 -0700 (PDT)") Message-ID: <44ipf48qrr.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" Subject: Re: IP -> e-mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-questions@freebsd.org" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 14:21:54 -0000 D=E1nielisz L=E1szl=F3 writes: > Let say my computer is connected to the internet with a cable modem and h= as a dynamic IP address via DHCP. This address is refreshed after every ran= dom days. > I want to know the new address even when I'm not home. Like send an e-mai= l with the new IP, I already know how to do this, but how can I track the e= vent when my computer receives the new IP? > Any ideas or same issues? dhclient-script(8) has provision for running scripts on any DHCP event, and provides both new and old IP addresses in environment variables. If they're different, fire off an e-mail.