DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
Expect::Simple: couldn't find prompt after sendIf I catch this die and look at the $simplexpect->expect_error() value, it looks something like this:
3:Child PID 8093 exited with status 0Now, I could catch the die and parse the expect_error() message to look for a type 3 error with /status 0$/ in it, but surely there is a 'Simple'r way to catch the successful conclusion of the command that is being controlled by Expect::Simple.
Does anyone know of a better way to do this?
Thanks,
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to handle Expect::Simple sessions to programs that end normally.
by djerius (Beadle) on Apr 21, 2010 at 16:12 UTC | |
by DrWhy (Chaplain) on Apr 23, 2010 at 19:16 UTC |