From owner-freebsd-newbies@FreeBSD.ORG Sat Jan 15 22:31:04 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAD5616A4CE for ; Sat, 15 Jan 2005 22:31:04 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB7043D3F for ; Sat, 15 Jan 2005 22:31:04 +0000 (GMT) (envelope-from madtux@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so875305wri for ; Sat, 15 Jan 2005 14:31:04 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=NzfDKimF57+T4o/V5Q69t240jeAUtrvsNud2ozRtk6wEFOPCoevC+X9E5HF2wXBUsBHV6qdi07tOX7ODdmEpBpIH/jxMF52a2fj/U9F0ku6DAndrAKCChCLZvSAl6Hy+l3P4J5yvm2i32F95QslrzlA5XxcG63m2KNgonhu4olw= Received: by 10.54.4.2 with SMTP id 2mr388006wrd; Sat, 15 Jan 2005 14:31:03 -0800 (PST) Received: by 10.54.29.61 with HTTP; Sat, 15 Jan 2005 14:31:03 -0800 (PST) Message-ID: <6ddb7bf805011514312fb08c91@mail.gmail.com> Date: Sat, 15 Jan 2005 17:31:03 -0500 From: ".:MadTux:." To: freebsd-newbies@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41E5C873.4030401@fusemail.com> <200501130821.52869.merv@merv.org.uk> <3296.209.87.176.132.1105652323.fusewebmail-19592@www.fusemail.com> cc: Brian John Subject: Re: Need to monitor when IP Address changes X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ".:MadTux:." List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2005 22:31:05 -0000 A trick that I use if a little script that sends the output of ifconfig to a text file and uploads it to a password-protected web address via FTP. When I need to see what my IP is, I just log into my protected page and view the current IP. I have a cron job scheduled every hour to run the script, and since it's a tiny file, it's not a major thing to haev run every hour. Here's the contents of the script (which runs on 4.7 thru 4.10): /sbin/ifconfig fxp0 | ncftpput -c -u username -p password domain /path/to/file/location/my_ip Example with fields filled in: /sbin/ifconfig fxp0 | ncftpput -c -u madtux -p secretpassword google.com /home/google/www/protected_directory/my_ip ..where "my_ip" is both the output of the command and the filename. To actually view the file, point yer trusty browser to http://www.mydomain/protected_directory/my_ip and provide the secret answer, after which you'll see the output of ifconfig. I had written something a little cleaner that pulls the IP from the stdout and writes it to a temp file, which is then uploaded, but I can't find it now :P Anyway, hope that helps. -Kevin -- A PC without Windows is like a cup of coffee without ketchup.