You are here: Re: [PHP] Re: PHP hangs when exec'ing SSH « PHP « IT news, forums, messages
Re: [PHP] Re: PHP hangs when exec'ing SSH

Posted by Rasmus Lerdorf on 10/04/83 11:10

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 ssh didn't require a controlling tty in interactive mode, you'd
be right. But unfortunately it does and you aren't. You could try
playing with the batch mode option. I am not sure if that disables the
tty requirement or if it simply suppresses prompts. Regardless, this
has nothing to do with PHP's exec stuff.

-Rasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация