note
eighty-one
<p>There is a tool called rancid that handles this via expect. The expect man page is actually pretty good and should give you a decent overview of what it can do.</p>
<p>I think the rancid devs use the shell version of expect via a bash script (I haven't looked in quite a while so I'm not sure).</p>
<P> CPAN has a few Expect modules. <a href="http://search.cpan.org/~jfried/Rex-1.6.0/lib/Rex/Helper/SSH2/Expect.pm">Rex::Helper::SSH2::Expect</a> looks interesting but I have no experience with it.
1209821
1209821