Consider using a (passwordless) SSH key to store the access credentials for the remote machine.
Your expect call likely fails because expect or ssh wants a (pseudo-)terminal connected to do their stuff.
In reply to Re: How to incorporate Expect in Perl Script? OR Pass the password via perl script?
by Corion
in thread How to incorporate Expect in Perl Script? OR Pass the password via perl script?
by prad001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |