Re: fork a background process und ssh
From: Nico Kadel-Garcia (nkadel@bellatlantic.net)
Date: 11/16/02
- Next message: Ian! D. Allen: "incorrect "host key changed" for multi-sshd localhost"
- Previous message: Darren Tucker: "Re: Putty ssh remote command"
- In reply to: : "fork a background process und ssh"
- Next in thread: Nico Kadel-Garcia: "Re: fork a background process und ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net> Date: Sat, 16 Nov 2002 05:21:52 GMT
"Jörg Schulz" <jschulz@sgbs.de> wrote in message
news:pan.2002.11.15.12.07.17.226856@sgbs.de...
> I want to to something like this:
>
> ssh host "/bin/process &"
>
> ssh should return immediately and the process should continue to run.
> All I get is that ssh either waits until the process has finished or
> it kills the process.
No, it shouldn't. You have dangling stdin, stdout, and stderr, which hold
open the ssh session lest they get cut off and oddnesses happen with the
dangling process on the server. Assuming that your shell is bash or sh, try
this instead:
ssh host "/bin/process </dev/null 1>/dev/null 2>/dev/null &"
- Next message: Ian! D. Allen: "incorrect "host key changed" for multi-sshd localhost"
- Previous message: Darren Tucker: "Re: Putty ssh remote command"
- In reply to: : "fork a background process und ssh"
- Next in thread: Nico Kadel-Garcia: "Re: fork a background process und ssh"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|