And the SSH program should then exit. I want to be able to send
commands to SSH (run at a command prompt) and receive commands from
SSH programmatically through Ruby.
You could do it this way via ‘expect’, though that module is still a bit