This is too good. If you are planning to start a background process in the bash script in the background and continue in the script, you cannot do it until…….
You would need to close the stdout/stdin and stderr before you can terminate any ssh session automatically. Here’s some more light on this topic.
http://lists.debian.org/debian-user/2005/09/msg00254.html
On Thu, Sep 01, 2005 at 05:33:28PM -0400, Roberto C. Sanchez wrote: > I occasionally log into a machine remotely and start a process in the > background: > > command & > > However, when I log out of the machine, the ssh process on my local > machine blocks.
Continue reading