Is there a way to programatically check to see if a session is open?
I've got an issue where the session (i.e. SSH) gets closed by the host sometimes - and I need to be able to check for that and re-open the connection to continue what I am doing.
Thanks.