Re: Calling ssh from C-Program with execvp



Hallo,
I found the reason for my problem. After I put the lines:

if( open("/dev/null", O_RDONLY) != 0) {
syslog(LOG_ERR, "failed to open /dev/null");
exit(EXIT_FAILURE);
}

before the call of execvp() and after closing STDIN anything runs!

Thank you to all!

Manfred

.