Q&A > input and output > How do I send passwd via Expect.pm w/o printing it clear text to screen contributed by zengargoyle
I think you want:
$scp->stty('-echo'); # echo off
print $scp ("password\n");
$scp->stty('echo'); # echo on
(untested, don't have Expect installed)
Frying pan on the stove
Results (331 votes). Check out past polls.