I am specifically looking on the return variables of running ping on my Ubuntu server, the variables I am looking for is: error status, output on stdout, output on stderr.
When pinging a host the following three scenarios can happen:
- The host answers on ALL packets (No error)
- The host answers on ZERO packets (Error)
- The host answers on SOME packets (Unspecified behavior)
I have read through man ping, a couple of times and can't seem to find what I should expect in that situation.
I have no way to test this, the only machines I have access to is a Linode virtual server running Ubuntu, and my Macbook running Snow Leopard (Probably not with the same PING program as my server)
What should I expect as return variables from the third scenario?