in reply to Persistent SSH Terminal from Perl?

OK SO compiling doesn't work for Expect (required by Net::SSH::Expect) becuase ultimatley: 'You cannot use IO::Tty with regular Perl on Windows because Windows doesn't use pseudo-terminals.' (from http://tinyurl.com/52j9nf), there is a pretty much unknown linker error which probably comes down to the OS symbols or something, no go there

So it looks like I need to use Illuminatus', or some other 'unwrapped' method ("Illuminatus are you there?"), IF it can give output before closing the session, which I hope it can! Such a shame, I would love to be able to do this from win32 perl, it would make my life so much easier, it can't be that hard just to run ssh and send commands and get stdout & stderr back wihtout using modules can it? perl was made as a 'glue' tool in the first place..

Replies are listed 'Best First'.
Re^2: Persistent SSH Terminal from Perl?
by Anonymous Monk on Sep 27, 2008 at 07:33 UTC
    been looking at open2 to write and read to ssh.exe at the same time, but the problem theres no way to tell when the last command's output ended, so you can issue a command, then wait forever to get it's output, which is stupid. I think it's probably eaiser just to approach this job a different way, as Perl & SSH multiple commands on activeperl is just not happening. Thanks for help anyway.