agr... this was the first form of the script - the second one was with case and it work fine ..
Quote:
Originally Posted by bigb89
Arch, I ran your script and I found a problem with it. Every time that I ran your script, it showed that all IPs were being used even though some IPs were not being used. Turns out that the problem was with your "if statement". You are not checking to see whether ping returned 0 (ping got a reply) or 1 (ping did not get a reply). So to fix that I went ahead and corrected your "if statement" and did the following:
|