Msg#: 3531550 posted 8:58 pm on Jan 16, 2008 (gmt 0)
Thanks lammert. I realized I can do something similar with ps and grep. I've created a bash script that checks if the SSH session is still up and reconnects if not.
I have a feeling that there is more to this, but I've definitely made some progress.
Here is what I have thus far (comments/suggestions welcome):
while true do if ps aux ¦ grep [y]ourdomain then echo "SSH connection up." else echo "SSH connection down." echo "Trying to connect ..." ssh -N -f -R 3307:localhost:3306 email@example.com fi sleep 60 done