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";
In reply to using Expect with ssh by senor_fjord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |