Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use Net::Ping; print "Starting Network Monitor...\n\n"; open FH, ">", "net.dat" or die "Error: $!\n"; my $p = Net::Ping->new(); for(;;) { $p->ping(xxx.xx.x.xx); } print FH "Lost connection at ", scalar localtime; close FH;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help writing a basic network monitor.
by McDarren (Abbot) on Sep 16, 2006 at 07:15 UTC | |
by svenXY (Deacon) on Sep 16, 2006 at 08:14 UTC | |
by McDarren (Abbot) on Sep 16, 2006 at 10:36 UTC | |
by fmerges (Chaplain) on Sep 16, 2006 at 11:18 UTC | |
by svenXY (Deacon) on Sep 21, 2006 at 16:18 UTC | |
|
Re: Need help writing a basic network monitor.
by aquarium (Curate) on Sep 16, 2006 at 14:27 UTC |