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
In reply to Re: Net::SSH2::Channel question by talexb in thread Net::SSH2::Channel question by drfunk2458