------ art_18068_13667464.1229610889200 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Dec 18, 2008 at 2:27 AM, Brian Candler <b.candler / pobox.com> wrote: > Sebastian W. wrote: > > Does anyone know of a way to tell Net::SSH to start running a script but > > then effectively "disown" that process? > > > > I have a long-running job I'd like to kick off using Net::SSH but I > > don't want the connection to persist for the entire length of the job. I > > just want to kick off the job, let it start running and then basically > > not care what happens. Of course I care, but I have a different process > > that will actually pick up whether or not the long-running task was > > successful or not. > > nohup somecommand someargs & > -- > Posted via http://www.ruby-forum.com/. > > You probably need something like this: nohup somecommand someargs > /tmp/out.log < /dev/null & the "< /dev/null" lets you detach the job from the terminal. Cheers, Doug Seifert ------ art_18068_13667464.1229610889200--