in reply to phantom log from hell?

According to the Expect.pm documentation, output is sent to STDOUT by default, perhaps you have to disable this by calling:

$exp->log_stdout(0);

Replies are listed 'Best First'.
Re: Re: phantom log from hell?
by jcpunk (Friar) on Jun 16, 2003 at 18:17 UTC
    thanks for the help, but i do have that line in there (admintedly it is burried in a mess of other stuff (the expect_login function... but perhaps it isnt treating it like i thought it would in the function even though i passed by reffernce.) i will look into that, again thanks for your help

      Have you tried calling $exp->log_file(undef) before you do $exp->log_file(\&formatoutput)? That closes the current log_file that you specified which should theoretically flush the buffer before you open the new log_file.

      HTH

        That was a really good idea, but unfortunatly while in theory it should have flushed the buffer - it had no effect...sigh but thanks again for the help, when i saw you suggestion it sure seemed like it was the solution.
        again i thank thee for the help