Need to ping remote server programmatically and store output of telnet
<p>Guys I am supposed to ping remote server Programmatically. Also I have to store output of telnet .I have recieved a mail where I am supposed to Share the following things but I dont know how to do these things.I have to share output of following activities of server where my site is hosted and from this server I have to ping another server i.e.203.189.91.127</p>

<ol>
<li><p>Ping to 203.189.91.127</p></li>
<li><p>Output of telnet 203.189.91.127 9090</p></li>
<li><p>Screen shot of <a href="http://www.whatismyip.com" rel="nofollow">http://www.whatismyip.com</a></p></li>
</ol>

<p>Guys I dont know how to do this help would be strongly appreciated</p>
