Re: Starting a daemon with ssh
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Thu, 22 May 2008 17:41:30 -0400
In article
<c5e09951-4df6-4a6e-9a3b-9a01895f8363@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
almeidaraf <almeidaraf@xxxxxxxxx> wrote:
Hello,
I want to run a program in the background of a remote server. I wish
to
use ssh to do it. My first try was:
% ssh server \( program \& \)
It didn't work, ssh would hang. So I tried ssh with the -n option:
% ssh -n server \( program \& \)
It didn't work either. How should I fix that? Isn't there a way for
asking openssh not to wait for output of the program? Maybe I'm
missing
something on the manpage, but I got nothing :(.
ssh server 'program </dev/null >/dev/null 2>&1 &'
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.
- References:
- Starting a daemon with ssh
- From: almeidaraf
- Starting a daemon with ssh
- Prev by Date: Re: Starting a daemon with ssh
- Next by Date: Can memfs support failover?
- Previous by thread: Re: Starting a daemon with ssh
- Next by thread: Can memfs support failover?
- Index(es):
Relevant Pages
|
|