faqts : Computers : Programming : Languages : Perl

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 14 people (86%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

When using Expect.pm, I don't want password print to stdout in plain view; is there a way to do this

Jul 17th, 2002 06:51
Jack Nerad, Michael Chan,


You don't have to print anything to stdout.  You can set 
$Expect::Log_Stdout = 0;
or, you can do
$object->($timeout,@match_patterns);
$object->log_stdout(0);
$object->($timeout,@password_patterns);
$object->log_stdout(1);
$object->($timeout,@match_patterns);
Check the documentation that comes with the module for more options.