I\'m trying to manage a SSH connection to a network device via the PTY module, with a code similar to this:
cmd_line = \"ssh coltrane@love.supreme.com\"
begin
In abstract: In Linux The parent should wait()s for this child to know the exit status of his child.
C code:
int status;
wait(&status) // in the parent code part
WEXITSTATUS(status) //macro to return the exit code of the returned child
I'm sorry.I don't have experience with ruby to provide you with some code. Best wishes :)