in reply to Expect Question
Do you mean that you want to capture the output of ls -l?
Why would you need Expect for this at all? Have a look at the Expect.pm documentation and the answer to the question "I just want to read the output of a process without expect()ing anything. How can I do this?": http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod
If the output of the command is very long then I'd recommend to redirect the STDOUT of the command to a file and then later on process this file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Expect Question
by tmaly (Monk) on Jul 14, 2009 at 13:58 UTC | |
by elTriberium (Friar) on Jul 14, 2009 at 18:03 UTC |