Re: exit ssh connection



On 2007-08-28, Philipp Ghirardini <philipp.ghirardini@xxxxxx> wrote:
Hallo!

I have written a Server/Client software where the server starts the
clients depending on a plan.

To start (fork and execve) the client the following command is used:

ssh -o StrictHostKeyChecking=no -f doti@mangrove nohup /usr/bin/nice -n
19 /netshares/commons/doti/localDist/CLIENT/lic_client 192.168.1.55 1234
mangrove /netshares/commons/doti/localDist/SERVER/config.txt cpu1 2 &
[...]
I compared the pid with the pid created by fork and it seems that it is
different.

The "-f" option makes ssh iteself fork to put itself in the background.

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
.