I'd setup authorized keys so you're not prompted for password, rather than putting the password in your script. Then you might not even need Expect:
system("ssh sysadmin@$server listdev");
In reply to Re: Expect.pm question
by hbm
in thread Expect.pm question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |