I tried that before. The thread won't solve the issue because once child thread established it does the same way as main tread. When the main thread terminates, the child gets killed also. It ends up nothing happened to the shell command. Thanks. Enling John W Higgins wrote: > On Thu, Jul 9, 2009 at 4:53 PM, Enling Li <enling.li / loglogic.com> > wrote: > >> > Would just dropping the ssh section into it's own thread accomplish your > task? That seems like a rather simple way of getting what you want. > > John -- Posted via http://www.ruby-forum.com/.