I am looking to ping several servers and return a value depending on whether there is any response. I am wondering the most efficient way to do this...
1. Ping serverA
2. If there is ANY reply, write "serverA, 0" to a XML file
3. If there is no reply, write "serverA, 1" to a XML file
4. When all ten servers have been "pinged", set future updates to overwrite existing entries and repeat the pinging once the end of serverlist is reached. (overwrite since this file will be queried by a web app concerning server responsiveness)