Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Expect prints command to console

by Anonymous Monk
on Apr 08, 2016 at 14:15 UTC ( [id://1159925]=note: print w/replies, xml ) Need Help??


in reply to Expect prints command to console

Set log_stdout AFTER the spawn worked for me (it did not work if it was set before the spawn):

$exp->spawn("su - root"); $exp->log_stdout(0); ## <<AFTER the spawn
Apologies for answering an oldie, but it helped me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1159925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-04-23 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found