How to get the exit code of spawned process in expect shell script? How to get the exit code of spawned process in expect shell script? unix unix