I need to check if a remote server is up before i send a file to it through FTP. I thought of using "ping" command to check it. But the problem is, my script needs to run from 2 different servers, one is Solaris and other is HP-UX. And ping works in different way in each of them
when I do - ping "IPaddress"
In Solaris, it gives me IPaddress is alive
But in HP-UX, it keeps on pinging the remote server by sending packets and doesn't break until I press ctrl+C.
Is there any common way, I can check if a remote server is up from any OS???