On Mar 7, 8:39 am, Janis <janis_papanag...@[EMAIL PROTECTED]
> wrote:
> Mind, the buffering is an OS issue, all the pipelines and external
> commands is a unix shell issue, and the option you presented is an
> tool specific issue (not even standardized), and the only awk'ish
> part of the posting is either trivial (print $4) or non-standard
> (fflush() seems not be defined by POSIX, according to the GNU docs).
Actually, this is not an O/S issue, it's a C stdio library
issue. The gawk fflush call instructs the stdio library to
write out the data to the operating system kernel. Once the kernel
has it, there's no more risk of losing the data.
Regards,
Andy


|