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

Re: [leafnode-list] Can fetchnews un-buffer stdout?

Lloyd Zusman <ljz@xxxxxxxxxx> wrote:
> Is there any way that the verbose output of `fetchnews' could be
> written to stdout unbuffered?

If you have "expect" installed, you can use it's small "unbuffer"
example program.  Change
    fetchnews ... > file
    unbuffer fetchnews ... >file

Expect is a very nice package for handling interactive programs
or other programs that run differently if they are attached to
a terminal.  There's an O'Reilly book "Exploring Expect" and a
lot of examples at expect.nist.gov.


leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list