use autoexpect to do that
e.g:
autoexpect ssh -f autossh.sh ssh user@host
and after its connected type exit
run the script as follows 
./autossh &

Enjoy....
Regards

Rahul T

_______________________________________________
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to