[jump to content][No Software Patents]Tools (new) : unbuffered [ Home | Scylla+Charybdis old home | Tools (old) | Tools (new) | FAQ | Downloads ]

Moving to GitHub, slowly

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.

Scylla and Charybdis, unbuffered - Tools

The tools are developed under Linux with ESR's paradigm release early, release often in mind.
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.

unbuffered 0.4.0-20111023-001608

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.


version 0.4.0-20111023-001608

download (259755 bytes) sig

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.

version 0.3.0-20111022-224132

download (259519 bytes) sig

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.

version 0.2.1-20110729-223640

download (258945 bytes) sig

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.

version 0.2.0-20110214-001359

download (256119 bytes) sig

Option -m and producer can now be forked.

For forked producers unbuffered returns the return value of the producer.

version 0.1.1-20110214-000752

download (255319 bytes) sig

Better usage and GCC 4.4 fixes

version 0.1.0-20090706-023522

download (239070 bytes) sig

Options -u, -l and -a added, option -n changed, option -c improved. Now installs into /usr/local/bin

With option -u and -l you can add a date-time prefix to lines written to STDERR. Option -n can be given multiple to change the line numbering.

Option -a appends the output to a file and not to STDERR. The file is created if it is missing. To allow easy logfile rotation, from time to time the file is closed and reopened (thus recreated if missing).

Option -c was unreliable in that it dumped incomplete lines. This has been changed such, that most time a full line will be written, such that you can use it to number lines etc.

version 0.0.2-20081017-211919

download (222800 bytes) sig

Usage corrected

version 0.0.1-20080708-225517

download (219584 bytes) sig

Bugfix and option -c added, also current tinolib

It now needs some more syscalls as the dumped output is no more linebuffered, because I had to change the binding.

The bugfix is for that I forgot to count lineendings in hexdump output.

version 0.0.0-20061212-142645

download (140220 bytes)

First version, it works

License and Disclaimer

All you can see here is free software according to the GNU GPL.
Copyright (C)2000-2011 by Valentin Hilbig
Note that the software comes with absolutely no warranty of any kind.
You use the software at your own risk.
Valentin Hilbig cannot be hold responsible for any unintended damage,
lost data or malfunction of the software you can find here.

[FSFE contributor 2007]

[end of page - jump back to content][hacker culture]
Last modified: 2011-09-12 by Valentin Hilbig [ Imprint / Impressum ]