A Rust UNIX system tool that randomly delays another program execution https://git.forestier.app/HorlogeSkynet/delayr
Go to file
Samuel FORESTIER 82313ffc44 Exits with `exec` syscall "errno" (if available) 2022-06-03 20:00:05 +02:00
src Exits with `exec` syscall "errno" (if available) 2022-06-03 20:00:05 +02:00
.gitignore Initial commit 2022-06-02 21:43:21 +02:00
Cargo.lock Initial commit 2022-06-02 21:43:21 +02:00
Cargo.toml Improves project description wording 2022-06-03 19:51:59 +02:00
LICENSE Initial commit 2022-06-02 21:43:21 +02:00
README.md Improves project description wording 2022-06-03 19:51:59 +02:00

README.md

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
rustfmt --check src/main.rs

Code analysis

rustup component add clippy
cargo clippy