Python Forum

Full Version: script wanted: ping and wait
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
the next script i want is a command that pings a specified host and waits until there are a specified number of good responses.  arguments/options to specify: 1. the host names and/or IP addresses. 2. the minimum response time that counts as good. 3. the ping interval.  4. the minimum number of good pings to wake up from (or time interval).  5. the longest acceptable gap of response.  6. the maximum percentage of packet loss to allow a wakeup.