raphi72 has asked for the wisdom of the Perl Monks concerning the following question:
oruse Net::Ping; while (1) { my $p = Net::Ping->new(udp); if $p->ping($host) { print "success\n"; } else { print "failed\n"; } undef $p; sleep 3; }
How can I fix my script, so I don't have to restart it, if I need to change my ppp-link?use LWP::Simple; while (1) { my $content = get($url); if (defined $content) { print "success\n"; } else { print "failed\n"; } sleep 4; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl daemon surviving changing ppp-links
by ybiC (Prior) on Oct 20, 2005 at 03:45 UTC | |
by Tanktalus (Canon) on Oct 20, 2005 at 04:12 UTC | |
by raphi72 (Initiate) on Oct 20, 2005 at 09:29 UTC | |
Re: perl daemon surviving changing ppp-links
by kwaping (Priest) on Oct 19, 2005 at 22:50 UTC | |
Re: perl daemon surviving changing ppp-links
by ybiC (Prior) on Oct 20, 2005 at 13:09 UTC | |
by raphi72 (Initiate) on Oct 20, 2005 at 21:48 UTC |