in reply to Re^2: How to recieve the exit code of a script executed through Expect ?
in thread How to recieve the exit code of a script executed through Expect ?

There is no match because your perl program prints output. My example only expected the return status as output. Make sure that your script either only prints the exit status value, or that your expect call handles other possible outputs too.
  • Comment on Re^3: How to recieve the exit code of a script executed through Expect ?