in reply to Net::SSH2::Channel question
You can probably use Net::SSH::Expect to do that.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds