dtee (double tee)

Logo (standard output and standard error represented as two separate T-junctions that split off the content to each side while the content also flows normally)


Run a program with standard output and standard error copied to files while maintaining the original standard output and standard error as normal.


To run programs from cron, suppressing all output unless the process outputs an error message or has a non-zero exit status whereupon the original output will be written as normal and the exit code will be appended to standard error.

It will do this by default when invoked as cronty, providing an alternative to cronic but without splitting up the output.

(Also, to do tee(1) with standard output and standard error at the same time.)