View Single Post
Old 17th August 2008
arch arch is offline
Port Guard
 
Join Date: Jun 2008
Posts: 38
Default

agr... this was the first form of the script - the second one was with case and it work fine ..

Quote:
Originally Posted by bigb89 View Post
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:
__________________
Verbose mode can also be turned on for SSH2 with the (surprise!) VerboseMode keyword.
Reply With Quote