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/; }
In reply to Re^2: Ping host
by kingjamesid
in thread Ping host
by kingjamesid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |