Crates.io | wait-until |
lib.rs | wait-until |
version | 1.0.0 |
source | src |
created_at | 2021-11-11 20:11:13.375679 |
updated_at | 2021-11-11 20:11:13.375679 |
description | Repeatedly run a command until it exits successfully |
homepage | |
repository | https://github.com/aatifsyed/wait-until |
max_upload_size | |
id | 480358 |
size | 27,471 |
wait-until
Repeatedly run a command until it's successful.
wait-until ping -c1 example.com & echo server is up
wait-until --wait 1s ping -c1 example.com
~$ wait-until --verbose ping -c1 example.com
PING example.com (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=1 ttl=49 time=106 ms
--- example.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 106.226/106.226/106.226/0.000 ms
~$
~$ RUST_LOG=wait_until wait-until true
DEBUG wait_until > opt = Opt { verbose: false, wait: None, cmd: ["true"] }
DEBUG wait_until > cmd = "true"
DEBUG wait_until > status = ExitStatus(ExitStatus(0))
~$
Better APIs exist for kernel objects like files - see inotifywait
.