Date: Tue, 6 Jul 1999 12:21:01 nzst From: "Dan Langille" <dan.langille@dvl-software.com> To: Burke Gallagher <burke@mcs.net> Cc: Anton Berezin <tobez@plab.ku.dk>, freebsd-questions@FreeBSD.org Subject: Re: running frequent cron perl scripts Message-ID: <37814bed.5822.0@actrix.gen.nz>
next in thread | raw e-mail | index | archive | help
>I have to agree with Anton, the original perl script is awful. I also
>agree with his fixups 100%.
Thanks. Again, no offense taken.
>Now here is a version that uses sockets directly.
My thanks for this. It would have taken me ages to write that. I think I need
to get the PERL book.
I've tried to implement this code on my box. This process is complicated by
my use of webmail at the moment (I'm not at home) and the associated tricks
the copy/paste is doing.
I'm getting errors which make no sense to me:
# perl get_ip.sh
Not enough arguments for send at get_ip.sh line 54, near "$httpRequest )"
syntax error at get_ip.sh line 119, near ".ne"
syntax error at get_ip.sh line 126, near "}"
Execution of get_ip.sh aborted due to compilation errors.
The lines in question are:
54 send( SH, $httpRequest );
119 if ($currentIP .ne. $lastIP)
{
print "change detected\n";
writeIP( $currentIP );
system "home/dan/dns_update.sh";
syslog( "The IP Address has changed to $currentIP" );
126 }
I'll be sure to post a working copy of the script once I have it running. I
can imagine it would be useful to anyone using the Nokia M10.
-
Dan Langille
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37814bed.5822.0>
