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

2005-03-12 Thread Ross Becker
Ah. Well, then my bug report is probably of no matter. Even looking further into SSH's options, there's something for controlling the TTY allocated for SSH, but it only controls what TTY SSH allocates, there is no means for turning tty allocation off completely. I was still holding out some

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

2005-03-11 Thread Rasmus Lerdorf
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. This SHOULD be a dead-nuts-simple case of exec the command and wait for it to return. And if

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

2005-03-11 Thread Ross Becker
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 didn't affect the problem. My bet is that ssh is mucking around with ttys, and PHP is loosing it's connection through apache. The php processing may actually be

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

2005-03-11 Thread Rasmus Lerdorf
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 didn't affect the problem. My bet is that ssh is mucking around with ttys, and PHP is loosing it's connection through apache. The php processing

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

2005-03-10 Thread Chris W. Parker
Ross Becker mailto:[EMAIL PROTECTED] on Thursday, March 10, 2005 11:50 AM said: ugh: top posting. ugh ugh: no trimming! oy vey! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-03-10 Thread Richard Lynch
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 21) 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 Richard Lynch
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 on the

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