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

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.3.0-20111022-224132

Copy stdin to stdout and stderr, unbuffered (look into latest version, download latest version 0.3.0-20111022-224132, sig)

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.

History:

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.

[view more history][view complete history]

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 ]