tee command without buffering

LCWSL kvancamp at ardc.arpa
Wed Dec 11 05:36:12 AEST 1985


Thanks to all of you who responded to my question about stopping buffering
of the tee command (so I could see my output at the same time I echo it
to a file). A few suggestions I got were:

1.) Use script. This sounds like it would do the job, but my Masscomp system
doesn't have this.

2.) xxx | tee something | cat -u    where the -u should force it to be
unbuffered. This doesn't seem to work.

3.) Put /dev/null as one of the tee arguments, also to force buffering.
I interpreted this as:   xxx | tee /dev/null | tee something
This, too, doesn't seem to work.

The fourth reply I got was from someone who said that what I wanted is
impossible because the buffering is inherent in the system (i.e., it isn't
the fault of tee because tee already works on only one byte at a time).

Does anyone have any other suggestions? Do you know how I can get a copy
of script, without violating any copyright laws; or can someone at least
point me in the right direction on how to write one? Any help would be
appreciated. Please respond directly to me as I do not subscribe to the
group. Thanks in advance.

			Ken Van Camp <kvancamp at pica-lca.arpa>



More information about the Comp.unix mailing list