bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WISH: tee -> add option for nonbufffered input/output


From: Bob Proulx
Subject: Re: WISH: tee -> add option for nonbufffered input/output
Date: Wed, 5 Jun 2002 10:06:34 -0600
User-agent: Mutt/1.3.28i

Thanks for your report.

> i really wish to have option  in tee  utility  for switching input/output
> to be unbuffered. Now, teeing process ouput breaks "interactive
> watching". You do not see anything until tee's input buffer is filled.

Are you sure the problem is with 'tee' and not the commands before it?
I cannot recreate your problem.  Here is an illustration.

  while sleep 1;do date; done | tee /dev/null

The output of tee will be a tty and the libc stdio library will
normally leave that unbuffered.  The commands before it are seeing a
pipe instead of a tty and would traditionally have buffered output.

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]