http://www.perlmonks.org?node_id=1038432


in reply to Re: Is it possible to see what Net::OpenSSH is doing?
in thread Is it possible to see what Net::OpenSSH is doing?

Hm, I was thinking with the ability to make an interactive shell with Expect, and then the ability to type/send commands and get/receive that command's output, maybe I could get that interactive shell and somehow have Net::OpenSSH type/send commands to the shell rather than me. I even tried setting master_stdout(stderr)_fh's to the pty device, but obviously that didn't work. I thought I was on to something a bit ago, but kept ending with the error 'Error: could not connect pty as controlling terminal'. Darn.