Instead of opening the log_file to /dev/null, you might instead try calling $expect->log_file(undef); to turn off logging. Then, just before setting log_file to your callback, you might want to call $expect->clear_accum(); to flush any waiting output.
bbfu
Black flowers blossom
Fearless on my breath
In reply to Re: phantom log from hell?
by bbfu
in thread phantom log from hell?
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |