#output #cron #command-output #failure #run #binary #command-line

app cwrap

This is a binary that can be used to wrap something that is run via crontab. This will suppress failure (and success)output per specifications on the command-line.

5 unstable releases

0.3.0 Dec 14, 2024
0.2.2 Dec 1, 2024
0.2.0 Nov 30, 2024
0.1.7 Dec 4, 2023
0.1.4 Feb 5, 2023

#6 in #failure

Download history 1/week @ 2024-09-21 4/week @ 2024-09-28 2/week @ 2024-11-02 242/week @ 2024-11-30 27/week @ 2024-12-07 131/week @ 2024-12-14

400 downloads per month

GPL-2.0-or-later

48KB
1K SLoC

rust-cwrap

A rust version of cron-wrap

IMPORTANT!

Version 0.2.0 is a breaking upgrade. You will have to remove all previous state files you have on disk. Replacing the cwrap binary with a 0.2.x binary without removing state files will cause a crash (by design). The state on disk has changed between versions.

About

This is mostly the same implementation as cron-wrap, but a nice static Rust binary that means you don't have to manage Python dependencies.

See cwrap --help for all of the various options here.

An important note about CLI parsing: If you have options for your command, you must terminate the options for cwrap with a --. For example, if you were going to run grep -R something /path/to/dir/* and you wanted to set a cwrap option like --num-fails, you would do it like this:

cwrap --num-fails 3 -- grep -R something /path/to/dir

Unfortunately, clap will gobble up anything that looks like an option no matter where it is, unless the options are terminated.

Dependencies

~16–45MB
~806K SLoC