From owner-freebsd-questions Mon Jul 5 4: 8: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mta1-rme.xtra.co.nz (unknown [203.96.92.1]) by hub.freebsd.org (Postfix) with ESMTP id 577E714DB9 for ; Mon, 5 Jul 1999 04:08:05 -0700 (PDT) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker ([210.55.152.59]) by mta1-rme.xtra.co.nz (InterMail v04.00.02.07 201-227-108) with SMTP id <19990705111124.ZBJY282564.mta1-rme@wocker> for ; Mon, 5 Jul 1999 23:11:24 +1200 From: "Dan Langille" Organization: The FreeBSD Diary To: freebsd-questions@freebsd.org Date: Mon, 5 Jul 1999 23:08:02 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: running frequent cron perl scripts Reply-To: junkmale@xtra.co.nz X-mailer: Pegasus Mail for Win32 (v3.01d) Message-Id: <19990705111124.ZBJY282564.mta1-rme@wocker> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm running cron job to start up a perl script. The script accesses the ADSL modem to see if the external IP address has changed. If it has, it runs another job to update the DNS. The ADSL modem has an http interface which has the details I need. The perl script takes about 35 seconds to run on this old 486. But I'm guessing that most of that is overhead. The first bit of the script is: #!/usr/bin/perl $| = 1; use CGI; use CGI::Carp (fatalsToBrowser); require LWP; Is there a way to speed this process up? The above bits seem to take up most of the time. 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