in reply to Re: Ping host
in thread Ping host
All I wanted to say: badhost : host not available But doesnt workuse warnings; @hostnames = qw(goodhost badhost); foreach (@hostnames){ @a = `ping $_`; print "for $_ checking....."; if ("@a" =~ /please check/){ print " For $_ : host not available."; } check/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ping host
by almut (Canon) on Oct 28, 2009 at 16:03 UTC | |
|
Re^3: Ping host
by jakobi (Pilgrim) on Oct 28, 2009 at 16:12 UTC | |
by almut (Canon) on Oct 28, 2009 at 16:37 UTC |