spickles has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use Net::Ping; my $host = $ARGV[0]; my $p = Net::Ping->new("icmp"); if ($p->ping($host)) { print "$host is alive.\n"; } else { print "$host is not reachable.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::Telnet Question
by jethro (Monsignor) on Jul 24, 2008 at 03:02 UTC | |
|
Re: Net::Telnet Question
by Khen1950fx (Canon) on Jul 24, 2008 at 05:38 UTC | |
|
Re: Net::Telnet Question
by Bloodnok (Vicar) on Jul 24, 2008 at 09:36 UTC | |
by spickles (Scribe) on Jul 24, 2008 at 21:22 UTC |