On Thu, Jul 9, 2009 at 4:53 PM, Enling Li <
enling.li@...> wrote:
> Thank you, Rob for the quick reply and help. I tried the commmand you
> enclosed in the mail. It did not work out. I still got hang at the
> exec() command.
>
> Here are the options I did. They behave the same. They don't work. By
> the way, my linux system has setsid().
>
> ssh.exec!("setsid /root/test.pl >/tmp/test.log 2>&1")
> ssh.exec!("setsid /root/test.pl > /dev/null 2>&1")
> ssh.exec!("setsid /root/test.pl")
>
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