expect_expectl()
| From: | Ilo Lorusso | Date: | Tue, 19 Aug 2014 20:24:45 +0000 |
| Subject: | expect_expectl() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-323745@lists.php.net to get a copy of this message | ||
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