ssh-rs
ssh-rs copied to clipboard
Getting command exit status
Would it be possible to retrieve the command exit status and signal status after running a command with ChannelExec<S>::send_command?
exit_status channel request: https://datatracker.ietf.org/doc/html/rfc4254#section-6.10
Let me do some research to find out if we can do this. Maybe update later this week.
BRs.
Hi there, Sorry for the late Please refer to the latest example files to find how to get the exit status BRs.
https://github.com/1148118271/ssh-rs/blob/2699b3d75bf35ee6f33d5ed30f826e8ec2be979d/examples/exec/src/main.rs#L27-L33
Thank you very much! This works beautifully.