Copy stdin to stdout and stderr, unbuffered # $Header: /CVSROOT/unbuffered/DESCRIPTION,v 1.2 2008-07-08 20:10:03 tino Exp $ # # $Log: DESCRIPTION,v $ # Revision 1.2 2008-07-08 20:10:03 tino # Bugfix (hexdump bytecount) and Option -c # # Revision 1.1 2006-12-12 13:26:27 tino # commit for first dist Often `tee` fails, as this command does it buffered. This here is a really easy program to do it unbuffered. Use it like this:
producer | unbuffered 2>>file | consumerNow you can do also something like:
producer | unbuffered -cp 'prefix ' | consumerThere are options like '-x' to do a hexdump. Also you can give a 'line prefix' to prepend. And there is timestamping. All you need to do your debugging, quick and dirty.