On Fri, Mar 14, 2003 at 09:35:55AM +0200, shlomo solomon wrote:
>
> So what's my problem? It seems that both the above solutions are writing to a
> buffer and the actual screen output is not immediate, but in spurts. Let me
> make that clearer. The original script creates a few hundred lines of output
> that would normaly (if not for the pipe and GREP) scroll **gently** off the
> screen during the few minutes it runs. But with both the above solutions, I
> get nothing on screen at first. After a little while, about 100 lines scroll
> at high speed and a while later, another 100, etc. This is certainly better
> than not having any output, but what I really wanted was to see the output as
> it's created.
What you are looking for is called "unbuffer", and is an example of the
"expect" program (probably also easy to write in C, but I do not know
about one). It's in /usr/bin in RH (assuming you installed expect), and
in /usr/share/doc/expect*/examples/ in Debian (and probably in one of
these in other distros). Of course, you still probably want tee or such.
Didi
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]