Re: Calling ssh from C-Program with execvp



Hello Doug,

Doug Spencer wrote:

On Sun, 21 Jan 2007 11:50:40 +0100
Manfred Rebentisch <mrebentisch@xxxxxxxxxxx> wrote:

Hello,
I try to call ssh from my Linux-Daemon (or for testing with a simple
C-program) with fork() and execvp() from the forked client. This works
great with all programs I tested, but not with ssh.

Try setting -o 'BatchMode yes', either on the command line, or in your
options. Also try doing an ssh -vvv from your program and view the
output. It sounds like it is waiting for input.

I forgot to tell: testet with BachMode yes too. Same result.

Thank you for thinking about my problem.

Manfred

.



Relevant Pages

  • Re: when does ssh return?
    ... Any process should "wait" for all of its children to exit or the children ... will become a zombie process when they exit. ... and fork() 2 for more information. ... Subject: when does ssh return? ...
    (SSH)
  • Re: when does ssh return?
    ... can't seem to figure out how to use ssh to start a command on a remote ... and a similar thing with a perl script that forks. ... the perl script fork, have its child fork, and then the grandchild ...
    (SSH)
  • Re: Calling ssh from C-Program with execvp
    ... I try to call ssh from my Linux-Daemon (or for testing with a simple ... C-program) with fork() and execvp() from the forked client. ...
    (comp.security.ssh)
  • RE: when does ssh return?
    ... Subject: when does ssh return? ... and a similar thing with a perl script that forks. ... the perl script fork, have its child fork, and then the grandchild ... Unauthorized use of this communication is strictly ...
    (SSH)
  • Re: when does ssh return?
    ... because sleep has the terminal open. ... can't seem to figure out how to use ssh to start a command on a remote ... the perl script fork, have its child fork, and then the grandchild ...
    (SSH)