You are here: Re: get output from ssh2_shell « PHP Programming Language « IT news, forums, messages
Re: get output from ssh2_shell

Posted by Daniel Tryba on 11/04/51 11:17

kenqcl@gmail.com wrote:
> fwrite($s, "ls /tmp");
>
> $o = fread($s, 100);

> But I can't get any output using fread. How can I get the
> output(STDOUT)?

That's because you didn't tell the shell to do somehting, you only send
some characters... Try appending "\n" to tell the shell to execute
received chars.

 

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

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