ssh remote execution
From: Bader (baderA_at_gmail.com)
Date: 09/29/05
- Next message: Ku Jaguk: "Re: socket lock in multithred programming"
- Previous message: David Schwartz: "Re: socket lock in multithred programming"
- Next in thread: Chuck Dillon: "Re: ssh remote execution"
- Reply: Chuck Dillon: "Re: ssh remote execution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Sep 2005 21:01:36 -0700
it is mentioned in the manual pages of ssh(1) that
" The session terminates when the command or shell on the remote
machine exits and all X11 and TCP/IP connections have been closed."
I wrote a program which create a sub-process the sub-process will then
start another program remotely on another host. I was able to do that
using the following call after I fork another process
execl("/bin/ssh","ssh","user@host","~/dir/remoteprog",0);
However the process on the local host will not exit because of the way
remote execution is designed in ssh.
Is there a way to get around this and close the session before the
remote program finishes its execution.
Thanks in advance
- Next message: Ku Jaguk: "Re: socket lock in multithred programming"
- Previous message: David Schwartz: "Re: socket lock in multithred programming"
- Next in thread: Chuck Dillon: "Re: ssh remote execution"
- Reply: Chuck Dillon: "Re: ssh remote execution"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|