I don't know much about Expect, but what you are calling as command is really calling a shell executable and passing it that command. I venture that whatever shell you are using is not passing the exit code upwards, or, as a shell, is actually running OK and thus exits with exit code 0. Also see the documentation of Expect on ->exitstatus maybe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Incorrect value 0 reported in command execution return value variable $?, when trying with expect->send command
by Davewhite (Acolyte) on Feb 25, 2012 at 14:10 UTC | |
by Corion (Patriarch) on Feb 25, 2012 at 14:20 UTC |