Well it looks like your problem is using the ping in backticks. That's going to return whatever ping prints out to the shell, so even if you didn't have "ping" installed on your system, the shell would still put "ping:command not found" into your variable thus making it true.
I'd look into shockme's suggestion of Net::Ping. Also a good way to notice things like this is to print your variables out to see if they are true or not.
ChrisIn reply to Re: until Loop Question
by cfreak
in thread until Loop Question
by ellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |