expect_expectl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux