[PLUG] more buffering than i'd like

Michael Rasmussen michael at jamhome.us
Fri Apr 11 13:44:25 UTC 2008


On Fri, Apr 11, 2008 at 04:04:56AM -0700, Russell Senior wrote:
> When I check on the output.data file, e.g. with tail -f:
> 
>   $ tail -f output.data
> 
> not unexpectedly, I get blocky output as the redirect is being
> buffered somewhere or other.  This is all familiar, but ... I'd like
> to make it not be buffered (that is, I want the lines to show up as
> the come out of "sample") ...  Unfortunately, that's about all I
> remember.  Anyone kind enough to supply me a refresher?
 
 
If sample is written in Perl add 
$|++;
during the initialization sections.

-- 
      Michael Rasmussen, Portland Oregon  
    Be appropriate && Follow your curiosity
  The fortune cookie says:
Things will be bright in P.M.  A cop will shine a light in your face.




More information about the PLUG mailing list