PERL expect o/p
Hello geeks,
Could you please tell me how to get output of last command executed through expect(in PERL) so that i could analyse and process it for the next steps? What if the last command output if long?(multiline and multicolumn). Is it possible to redirect the o/p to a file and then process it? Thanks. |
Quote:
http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod ? |
I already went thru' Expect pod but its not that helpful, not at all in some cases.
Can anyone who has good experience or who know the answer to the question reply please????? |
Quote:
|
Ok. The Problem is:
I want to get the warning messages when a command is executed and take action based on the warning messages. prompt>delete fs WARNING: Are you sure(Y/N).. backup is running. In the above scenario I need to get the WARNING message as input before proceeding and then send a 'Y'. The waning may not be displayed as shown below: In some cases if backup is not running: prompt>delete fs Done... |
All times are GMT -5. The time now is 02:02 AM. |