3 ms·
If only all tools were as good as curl at having flexible powerful options to control logging/error reporting/output.
by jrochkind1 5y ago
If only all tools were as good as curl at having flexible powerful options to control logging/error reporting/output.
- jrochkind1 5y agoTo say more: I have sometimes had to resort to writing a wrapper script just for the purpose of gatekeeping what stdout/stderr a task in cron does (and ensure the exit code is properly (non-)zero. At one former job where I had a lot of cron jobs, I even wrote a re-usable wrapper utility for it. Many unix command line executables are pretty bad at it (especially if you deal with anything proprietary), so I get why people resort to just throwing away output from cronjobs, although it is a problematic lack of observability, true.
- anotherevan 5y agoWould chronic solve this for you? https://joeyh.name/code/moreutils/ https://joeyh.name/code/moreutils/