| 
 Posted by Daniel Tryba on 06/13/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.
 
[Back to original message] 
 |