I have to solve a problem at my firm, which is that we use Raspbian(unix) based Raspberry Pi machines to connect remotely to Windows 7 machines and work from there. The problem is, all the easy to use, free, unix based rdesktop applications can't handle disconnects. They freeze up, and the "not so talented" employees don't know how to stop the rdesktop and reconnect.
I need to write something, preferably a bash application, which can run in the background on the Raspberry and check the connection. If the connection is down it should kill the rdesktop and start a new one as the connection comes back up. I don't know where to start, because while I found some examples, they all used ping to check connection, but my boss said that all the Raspberries sendin ping packets all the time will overload our gateways. Is there a way to check connection without ping?