From: Rajan V. <raj...@gm...> - 2010-09-15 15:32:02
|
All, I am using Perl with Expect for automating wpa_cli for wps. I have a general question. For example if a command has been sent to to either a remote machine or a spawned process, how to read the entire output of the command executed. How does expect store so that I can parse and use it for later purpose? For example, if I telnet to a remote machine and read a file (cat <filename>) using expect. How can I store the entire cat output in a variable and use it for later parsing? Any pointer would be helpful. Thank you. -- Regards, Rajan Vijayaraghavan |