jcpunk has asked for the wisdom of the Perl Monks concerning the following question:

I am working on a script to do some authentication but I need to get expect to not dump anything on the screen. example
[unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$
the front end is a web page an I have tried impementing HTML comments but that doesnt work exactly but its close

<!--<!--<!--<!--<!--<!--<!--<!--<!--<!--<!--<!--<!--<!--No value for $TERM and no -T specified No value for $TERM and no -T specified [unixhelp@Jassys unixhelp]$>[unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$ [unixhelp@Jassys unixhelp]$

I would like to just make expect silent, but am looking for any option to stop its jabbering. I have already tried $exp->manual_stty(1); to no effect....

Replies are listed 'Best First'.
Re: Making expect.pm shut up
by cbro (Pilgrim) on Jun 05, 2003 at 16:22 UTC
    I'm pretty sure that you want to work with:
    $exp->log_stdout()
    It defaults to one for spawned commands. Try, $exp->log_stdout(0).
    HTH,
    Chris
      That was it exactly, thank you