SUMMARY: tar | tee - tar output buffering problem

From: <Paleev.Boris_at_gci.cbr.ru>
Date: Fri Dec 07 2001 - 03:25:19 EST
Hello All !

There is no way to remove stdout buffering (thanks to Darren Dunham
[ddunham@taos.com], David Evans [David.J.Evans@oracle.com])

The only working solution is to use stderr, which is always unbuffered
(thanks to sysadmin@astro.su.se):

(/usr/bin/tar cvf - * | dd of=/dev/rmt1 bs=20b) 2>&1 | tee -a logfile

"script" command does not help: it writes logfile data to file only after
forked shell is closed.

Best regards, Boris.
Received on Fri Dec 7 08:25:19 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:37 EDT