R
Ryan Grow
Hi,
I am using net-ssh 2.0.1. I have not been able to figure out how to get
the exit value from a remotely executed process. In the only examples I
could find, only the stdout was returned, like this one:
Net::SSH.start(host, username, assword => password) do |ssh|
print ssh.exec!("hostname")
end
I would like to check to see if the remote command returns a non-zero
value to indicate failure.
Thanks,
Ryan
I am using net-ssh 2.0.1. I have not been able to figure out how to get
the exit value from a remotely executed process. In the only examples I
could find, only the stdout was returned, like this one:
Net::SSH.start(host, username, assword => password) do |ssh|
print ssh.exec!("hostname")
end
I would like to check to see if the remote command returns a non-zero
value to indicate failure.
Thanks,
Ryan