senor_fjord has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance for any insights.$ssh_cmd = Expect->spawn("ssh $host uptime"); unless ($ssh_cmd->expect(3, "password:")) { print "ssh error"; print $ssh_cmd "password";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Expect with ssh
by Anonymous Monk on Jun 22, 2002 at 15:32 UTC | |
by pcdj (Initiate) on Oct 17, 2002 at 19:50 UTC |