kingjamesid has asked for the wisdom of the Perl Monks concerning the following question:
@hostnames = qw(goodhost badhost); foreach (@hostnames){ @a = `ping $_`; print "$_ is Alive\n" if @a =~ (/please check/); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ping host
by almut (Canon) on Oct 27, 2009 at 20:34 UTC | |
by kingjamesid (Acolyte) on Oct 28, 2009 at 15:48 UTC | |
by almut (Canon) on Oct 28, 2009 at 16:03 UTC | |
by jakobi (Pilgrim) on Oct 28, 2009 at 16:12 UTC | |
by almut (Canon) on Oct 28, 2009 at 16:37 UTC | |
|
Re: Ping host
by toolic (Bishop) on Oct 27, 2009 at 20:31 UTC |