Skip to content
/ dtee Public

Run a program with standard output and standard error copied to files

License

Notifications You must be signed in to change notification settings

nomis/dtee

Repository files navigation

dtee (double tee) Build Status

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)

Description

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

Purpose

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.)

Documentation

Read the documentation generated from the docs directory.