Re: exit ssh connection



Richard E. Silverman wrote:
Richard E. Silverman wrote:
"PG" == Philipp Ghirardini <philipp.ghirardini@xxxxxx> writes:

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

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

PG> ssh -o StrictHostKeyChecking=no -f doti@mangrove nohup
PG> /usr/bin/nice -n 19
PG> /netshares/commons/doti/localDist/CLIENT/lic_client 192.168.1.55
PG> 1234 mangrove /netshares/commons/doti/localDist/SERVER/config.txt
PG> cpu1 2 &


PG> After this call no ssh connection shall exist. But as long the
PG> client is running also the ssh connection is established.

PG> When i list it with ps aux the following line is shown:


PG> doti 28578 0.0 0.0 5932 1096 ? Ss 15:55 0:00 ssh -o
PG> StrictHostKeyChecking=no -f doti@mangrove nohup /usr/bin/nice -n
PG> 19 /netshares/commons/doti/localDist/CLIENT/lic_client
PG> 192.168.1.55 1234 mangrove
PG> /netshares/commons/doti/localDist/SERVER/config.txt cpu1 2 &

PG> I compared the pid with the pid created by fork and it seems that
PG> it is different.

PG> Can anyone help me please.

PG> kind regards Philipp Ghirardini

http://www.snailbook.com/faq/background-jobs.auto.html


"PG" == Philipp Ghirardini <philipp.ghirardini@xxxxxx> writes:

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

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

PG> ssh -o StrictHostKeyChecking=no -f doti@mangrove nohup
PG> /usr/bin/nice -n 19
PG> /netshares/commons/doti/localDist/CLIENT/lic_client 192.168.1.55
PG> 1234 mangrove /netshares/commons/doti/localDist/SERVER/config.txt
PG> cpu1 2 &


PG> After this call no ssh connection shall exist. But as long the
PG> client is running also the ssh connection is established.

PG> When i list it with ps aux the following line is shown:


PG> doti 28578 0.0 0.0 5932 1096 ? Ss 15:55 0:00 ssh -o
PG> StrictHostKeyChecking=no -f doti@mangrove nohup /usr/bin/nice -n
PG> 19 /netshares/commons/doti/localDist/CLIENT/lic_client
PG> 192.168.1.55 1234 mangrove
PG> /netshares/commons/doti/localDist/SERVER/config.txt cpu1 2 &

PG> I compared the pid with the pid created by fork and it seems that
PG> it is different.

PG> Can anyone help me please.

PG> kind regards Philipp Ghirardini

http://www.snailbook.com/faq/background-jobs.auto.html


Thanks a lot! The thing I was looking for!

kind regards
Philipp Ghirardini
.



Relevant Pages

  • Re: why to use select()?
    ... to handle multiple clients, I fork a child, so each child process ... There's only a compelling reason to fork for each client if there is intensive computations to ... most of the early web servers used this forking design. ...
    (comp.unix.programmer)
  • Re: exit ssh connection
    ... I have written a Server/Client software where the server ... PG> To start (fork and execve) the client the following command is ... PG> client is running also the ssh connection is established. ... PG> I compared the pid with the pid created by fork and it seems that ...
    (comp.security.ssh)
  • Re: rsync for OpenVMS?
    ... Overcome the fork() issue. ... On the client, it does two things. ... One is it spawns it self, ... The server forks a receiving thread like the client. ...
    (comp.os.vms)
  • Re: Threaded chat server
    ... Typically, an IO::Select server, is preferred, because it handles ... Alternatively, to forking, you can spawn threads to handle each client. ... handed the client socket filehandle, and you can just use IO::Socket ... that fork and use IO::Select. ...
    (perl.beginners)
  • exit ssh connection
    ... I have written a Server/Client software where the server starts the clients depending on a plan. ... But as long the client is running also the ssh connection is established. ... I compared the pid with the pid created by fork and it seems that it is different. ...
    (comp.security.ssh)