Don't ask to ask, just ask | |
PerlMonks |
Re: Incorrect value 0 reported in command execution return value variable $?, when trying with expect->send commandby Perlbotics (Archbishop) |
on Feb 25, 2012 at 14:20 UTC ( [id://956117]=note: print w/replies, xml ) | Need Help?? |
Insert this line and the solution will reveal before your weary eyes... Hint: You need to escape $?. Why not get rid of the sed-invocation? Depending on the shells flavour of echo, you could also get rid of the second echo invocation.
In Section
Seekers of Perl Wisdom
|
|