[PHP] PHP hangs when exec'ing SSH

2005-03-09 Thread Ross Becker
Hello, I've beat on this for a while now, and I'm not seeming to get anywhere. Any ideas would be appreciated. I'm attempting to execute some things on remote servers using ssh, using a strictly limited account created for this express purpose. I set up passwordless key authentication from t

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
There is no output to stderr or stdout from the script being executed. All I care about are the side-effects of running this remote program. If something fails, a numeric error-code will be returned. I have tried this using: system(), shell_exec() - same as backtick operator, and popen(). I ha

[PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
I actually do care about the return code from the program, as well as knowing that the program executed and completed successfully, so background execution is not a valid option. I tried using system("ssh [EMAIL PROTECTED] mycommand > /dev/null 2>&1") and got the same results. You are correct

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
Richard, I'm really not sure what you're asking here. I've created a limited access user account on a remote host so that I can kick off some things on the remote host by hitting a web page. Access to the web page is protected via SSL and user authentication. The things which are executed

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Ross Becker
Incorrect. Setup now: Server A: Authenticates User SSL -> runs PHP -> runs SSH [EMAIL PROTECTED] Server B: Authenticates user SSH -> runs command "su" is not involved, and has not been involved- I stated in my original post, and in my last reply to you that it was only used in order for me to

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-11 Thread Ross Becker
tting the tty after returning from a system or whatever. --Ross Rasmus Lerdorf wrote: Ross Becker wrote: There's no output (besides the numeric return code) from SSH which I care about- there shouldnt be anything coming back via stdout or stderr. If there is, I'm happy to discard it

Re: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-12 Thread Ross Becker
out some hope that this was my system configuration, and not something fundamental in how PHP or worse- SSH acted. Ross Rasmus Lerdorf wrote: Ross Becker wrote: I think you're probably right. My gut is telling me that this has to do with tty funkiness. I tried the batchmode option, but it did