Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Answer: How do I send passwd via Expect.pm w/o printing it clear text to screen

( #147203=categorized answer: print w/ replies, xml ) Need Help??

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:

[ 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)

Comment on Answer: How do I send passwd via Expect.pm w/o printing it clear text to screen
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2015-07-31 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls