From: Brian Candler Date: 2008-12-19T17:54:08+09:00 Subject: Re: Net::SSH - kick off background job Sebastian W. wrote: > E.g. usually you might be able to do something like 'ssh me@box "cat > somefile.txt"' but my colleague pointed out that to "disown" the process > I'd need to do something like > > ssh me@box "nohup command" & -- it's the ampersand outside the quotes > that I wasn't sure how to deal with. But I thought you were using Net::SSH? In that case, the ssh me@box part is not used. Anyway, you want the ampersand *inside* the quotes if you want the "nohup command" to return immediately, so that you can logout from the remote system while the remote command is running. -- Posted via http://www.ruby-forum.com/.