in reply to Persistent SSH Terminal from Perl?

Thanks for replies, both enlightening.

Client is ActivePerl on w32 1. I cannot get Net::SSH::Perl or Net::SSH::W32Perl to work, long story, too much hassle, no support.

Net::SSH::Expect looks good, although I need to compile some of it's prerequisites which won't be easy, which I am doing now, so I will try that and get back.

Secondarily, Illuminatus (Monk) I do not know the entire set of commands I want to execute in the beginning, some depend on output of others.

So, in your second example, how do I get the output from one of the commands before closing the session?

If that works, it will be the simplest & probably used method.

Thanks.