The software on this pages will slowly be moved to GitHub https://github.com/hilbix/. The CVS repository will be migrated to GIT as well, so the history will be preserved, a bit. See FAQ.
The tools are developed under Linux with
release early, release often
So you can consider this beta software, or alpha, or pre-alpha, or even worse ;)
Have a look in the download directory for all downloads.
As always here, all you get is the source. No binaries here.
Copy stdin to stdout and stderr, unbuffered
⇒ ⇒ ⇒ The development shifted to another location. All future versions will be published at https://github.com/hilbix/unbuffered ⇐ ⇐ ⇐
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 | consumer
Now you can do also something like:
producer | unbuffered -cp 'prefix ' | consumer
There 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.
Bugfix release for option -c. Option -b added
WARNING! The old unbuffered -c now must be written unbuffered -bc!
Incomplete lines were not output in cat mode in contrast to the Usage printed. This was due to a problem noted by me with incomplete lines and -u. Now you must use "unbuffered -bcu" instead of "unbuffered -cu".
This is important. If you rely on the old method, please update your scripts accordingly.
Option -i and -o added
Input and output file descriptors can be specified. So this can read from other FDs than stdin and send to other fds than stderr.
Bugfix, option -a works now
For unknown reason (I believe it worked before) the write-permission (O_WRONLY/O_RDWR) were missing for O_APPEND mode. This triggered another bug where the error processing entered an endless loop.
Option -m and producer can now be forked.
For forked producers unbuffered returns the return value of the producer.
Better usage and GCC 4.4 fixes
|[view more history]||[view complete history]|
License and Disclaimer
All you can see here is free software according to the GNU GPL.