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.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Dec 7 02:26:10 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:29 EST