Re: get output from ssh2_shell
- From: Daniel Tryba <partmapsswen@xxxxxxxxxxxxxxxx>
- Date: 30 May 2005 10:37:31 GMT
kenqcl@xxxxxxxxx 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.
.
- References:
- get output from ssh2_shell
- From: kenqcl
- get output from ssh2_shell
- Prev by Date: Re: Import .sql file via PHP
- Next by Date: How to create html list from such array ?
- Previous by thread: get output from ssh2_shell
- Next by thread: Opnion needed on image manipulation (not neccesarilly PHP)
- Index(es):
Relevant Pages
|