Version 3 of How Expect can capture the exit code from a remote command

Updated 2007-11-09 03:53:03 by sunil

[ ...; echo $?; ...]

[Write example that explains use of {send "echo $?\r"}, for example.]

[can someone be a little more verbose? There is no $? variable... or echo command... in Tcl, right?]

echo $? is a shell command that will print the exit status of the previous shell command.


Category Expect