Discussion:
expect_expectl()
Ilo Lorusso
2014-08-19 20:24:45 UTC
Permalink
Hi

say Ive sent a command to a process using the fwrite command

...
...

while (true) {
switch (expect_expectl($stream, $cases)) {
case "ls":
fwrite($stream, "ls -al\n");
break;
..
..



is there a way I can same the output from that process to a variable ?

Thanks

Regards

Ilo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...