Expect: ssh + sudo – How to get the exit code of the command?
I need to ssh + sudo and came up with this solution to know if the executed command failed.
But I did not manage to return the real retCode of the executed command, any idea ?
Expect: ssh + sudo – How to get the exit code of the command?
I need to ssh + sudo and came up with this solution to know if the executed command failed.
But I did not manage to return the real retCode of the executed command, any idea ?
Expect: ssh + sudo – How to get the exit code of the command?
I need to ssh + sudo and came up with this solution to know if the executed command failed.
But I did not manage to return the real retCode of the executed command, any idea ?
Tcl expect not cleaning up on exit, or messing up FIFOs?
TL;DR: expect
appears to be messing up named pipes in some obscure way, or not cleaning up on exit.