super tee 1.5

super tee is a simple application which duplicates both the standard output and standard error streams from a command to a file.
super tee
  1 Screenshot
super tee is a simple application which duplicates both the standard output and standard error streams from a command to a file.

Simply duplicates both the standard output and standard error streams from a command to a log file, while marking the lines in the log to indicate which stream the lines came from. This is essentially the same idea as the standard UNIX tee command, except that in order to use the tee command for both streams requires that you lose the distinction between the two streams.

super_tee solves this problem by invoking the command as a child of super_tee, rather than just piping the output of the command into it, as tee does.

Since the goal is to keep the differentiation in the output log between the two input streams, super_tee also has the nice property of untangling lines that may have been interleaved together from the two streams.

As an additional feature, timestamps can be added to each line as they are written to the log.

BUILDING

$ gcc -O3 -o super_tee super_tee.c

USAGE

supertee [-tna] [cmdline...]
-t Add time stamps to the output
-n Suppress the markings indicating the source of the lines (stdout vs stderr)
-a Append to the output file rather than overwriting

last updated on:
April 24th, 2007, 1:05 GMT
price:
FREE!
homepage:
www.theagricolas.org
license type:
GPL (GNU General Public License) 
developed by:
Craig B. Agricola
category:
ROOT \ Utilities
super tee
Download Button

In a hurry? Add it to your Download Basket!

user rating 1

2.0/5
 

0/5

Rate it!

Add your review!

SUBMIT