I think you want:
[ qr'ssword: ', sub { $spawn_ok=1; $scp->stty('-echo'); # echo off print $scp ("password\n"); $scp->stty('echo'); # echo on exp_continue; } ],
(untested, don't have Expect installed)
In reply to Re: How do I send passwd via Expect.pm w/o printing it clear text to screen
by zengargoyle
in thread How do I send passwd via Expect.pm w/o printing it clear text to screen
by perlknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |