Errout

There are occasions when you would like to redirect both standard output (stdout) and standard error (stderr). The normal method to achieve this is >file 2>&1 - send stdout to the file and duplicate stderr to stdout. The problem with this method is it may change the order (as seen on the console) - you end up with all of stdout, followed by all of stderr. Errout really sends stderr to stdout, maintaining the order. It also functions as a tee utility and can use a separate color for stderr.


Errout v1.11 (45k, includes C source).


Jason Hood.
5 December, 2013.


Main.