From owner-freebsd-questions Tue Jul 6 4:42:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from metis.host4u.net (metis.host4u.net [209.150.128.22]) by hub.freebsd.org (Postfix) with ESMTP id 665CE151CA for ; Tue, 6 Jul 1999 04:42:08 -0700 (PDT) (envelope-from dan.langille@dvl-software.com) Received: from wocker (210-55-152-24.ipnets.xtra.co.nz [210.55.152.24]) by metis.host4u.net (8.8.5/8.8.5) with SMTP id GAA22744; Tue, 6 Jul 1999 06:41:49 -0500 Message-Id: <199907061141.GAA22744@metis.host4u.net> From: "Dan Langille" Organization: DVL Software Limited To: Burke Gallagher Date: Tue, 6 Jul 1999 23:40:34 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: running frequent cron perl scripts Reply-To: dan.langille@dvl-software.com Cc: freebsd-questions@FreeBSD.ORG In-reply-to: <4.1.19990705233706.00a80a00@pop.ce.mediaone.net> References: <378185b0.bc9.0@actrix.gen.nz> X-mailer: Pegasus Mail for Win32 (v3.01d) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 5 Jul 99, at 23:45, Burke Gallagher wrote: > Glad it is working for you. All thanks to you. > Email me the final copy and I will add some more error checking to it > (i.e. if the currentIP address is null abort) before you post it on your > web site. The latest copy is at ftp://ftp.freebsddiary.org/pub/get_ip.sh I changed the file name for the IP to a full path name. Running from a cron job, it wasn't always finding it. At present, the cron job is: */3 * * * * root /home/dan/get_ip.sh > /dev/null I'm planning on sending root an email message if the IP address changes. I don't want to resort to scanning the logs to know. Cheers. -- Dan Langille - DVL Software Limited The FreeBSD Diary - http://www.FreeBSDDiary.org/freebsd/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/racingsystem.htm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message