joshdk / joshdk/retry

cronmode: quiet on sucess but output on failure

Open
#25 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
32
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I'd like to use this in a cronjob to avoid mails if a command failed only once. Using `-quiet` completly
supresses the output, but i'd like to print the output if the command fails, even after some retries.
Basically i'd like no output at all if the command finally success and the output of all or the last run if it does not work at all.
Is this possible already?

Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.