in reply to Re: phantom log from hell?
in thread phantom log from hell?

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

Replies are listed 'Best First'.
Re: Re: Re: phantom log from hell?
by pzbagel (Chaplain) on Jun 16, 2003 at 19:38 UTC

    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