Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!kvancamp@ardc.arpa From: kvancamp@ardc.arpa (LCWSL) Newsgroups: net.unix Subject: Re: tee command without buffering Message-ID: <509@brl-tgr.ARPA> Date: Tue, 10-Dec-85 14:36:12 EST Article-I.D.: brl-tgr.509 Posted: Tue Dec 10 14:36:12 1985 Date-Received: Thu, 12-Dec-85 06:04:52 EST Sender: news@brl-tgr.ARPA Lines: 25 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