A Rust UNIX system tool that randomly delays another program execution https://git.forestier.app/HorlogeSkynet/delayr
Go to file
2024-07-27 15:58:29 +02:00
src Minor improvements 2023-05-13 16:01:50 +02:00
.gitignore Initial commit 2022-06-02 21:43:21 +02:00
Cargo.lock Bumps dependencies 2024-07-27 15:58:29 +02:00
Cargo.toml Bumps dependencies 2024-07-27 15:58:29 +02:00
LICENSE Updates LICENSE copyright as of 2023 2023-05-13 16:04:04 +02:00
README.md Prefers cargo fmt over rustfmt direct usage 2022-06-15 20:34:57 +02:00

delayr

A Rust UNIX system tool that randomly delays another program execution

Build

cargo build

Usage

delayr --help

Examples

# Sleep between 1 second and 1 hour before executing
delayr 3600 -- certbot renew -n -q

# Sleep between 30 seconds and 60 seconds before executing, with informational logs
delayr -v -m 30 60 -- borg create [...]

# Sleep 10 seconds before exiting, with debugging logs
delayr -d -m 10 10

Contributing

Code format

rustup component add rustfmt
cargo fmt

Code analysis

rustup component add clippy
cargo clippy