Super Tee is a basic tool that copies standard output and standard error streams from a command to a file.
One of the main advantages of Super Tee is its ability to differentiate between the two input streams. Unlike the tee command which requires the user to make a tradeoff between the two streams, Super Tee solves this problem by launching the command as a child process of Super Tee, rather than just piping the output into it. This feature makes it easy to interactively examine both streams, especially when troubleshooting errors or issues.
Another feature of Super Tee is its property of untangling lines that may have been interleaved together from the two streams. This can be a time-saving feature when dealing with errors, as it allows you to focus on the streams one at a time, rather than having to visually separate them manually.
Super Tee also supports timestamps, allowing you to add the current time to each line as it is written to the log, making it easy to keep the log organized and time-stamped.
Building and using Super Tee is easy. To build the application, simply use the gcc -O3 -o command to compile the super_tee source code. Thereafter, to use Super Tee, run the supertee command with the additional options of -t (to enable timestamps), -n (to suppress the markings indicating the source of the lines), or -a (to append to the output file rather than overwriting it).
Overall, I highly recommend Super Tee to anyone looking for a simple and efficient way to duplicate both standard output and standard error streams from a command to a log file while retaining the markings indicating the source of the lines. Super Tee is easy to build and use, and its additional features make it an excellent addition to your toolkit.
Version 1.5: N/A