#command-line #wait #condition #tcp #subprocess #exit #connetions

bin+lib wait3

Wait for arbitrary conditions (e.g.: time, TCP connetions, etc on the command-line)

6 releases

0.4.0 Dec 5, 2023
0.3.4 Oct 26, 2023
0.3.1 Jun 19, 2023
0.1.1 Jun 17, 2023

#21 in #subprocess

Apache-2.0 OR MIT

14KB
166 lines

Wait3

Build Status Latest Version crates.io License Commit Activity Rust 1.70

Wait for arbitrary conditions (e.g.: time, TCP connetions, etc) in the command-line)


Installation

cargo install wait3

Usage

Wait for time

number: a valid integer suffix: smh

wait3 time <number><suffix>

Examples

Wait for 5 seconds

wait3 time 5s

Wait for 4 minutes

wait3 time 4m

Wait for subprocess

wait3 command --exit 0 'sleep 9'

Dependencies

~4.5–6.5MB
~107K SLoC