Products / Developer tools
Standby
Standby is a Rust command-line tool for sleep, timeout and wait operations. It is POSIX compliant with GNU coreutils compatibility, runs on Unix, macOS and Windows, and restores the terminal state after killing TUI applications.
cargo install standby- 3
- Core commands: sleep, timeout, wait
Features
Built for production
Universal time parser
Accepts 5, 5.5, 1s, 1m, 1h, 1d, compound values such as 1h30m45s, and infinity.
Cross-platform
Unix/Linux, macOS and Windows, with native signal handling.
Terminal restoration
Automatically restores terminal state after killing TUI apps such as vim.
Signal escalation
Send SIGTERM, then SIGKILL after a delay, for proper process management.
GNU compatible
GNU coreutils compatibility with extensions.
In code
See it work
standby sleep 5
standby sleep 1m30s
standby sleep infinitystandby timeout 10 sleep 60
standby timeout -s KILL 10 cmd
standby timeout -k 2s 10 cmdstandby wait 1234
standby wait 1234 5678
standby wait --timeout 30s 1234Terminal handling
Never run `reset` after a timeout again.
- Automatically restores terminal attributes (echo, canonical mode) - Restores cursor visibility after killing TUI apps (vim, less, top) - Handles SIGTTIN and SIGTTOU for background process terminal access - Uses the safe process_group() API instead of unsafe pre_exec
Commands
- `sleep`: suspend execution for a specified duration - `timeout`: run commands with time limits and signal escalation - `wait`: wait for processes to complete, with an optional timeout
Putting Standby to work?
We help teams design, build and operate production systems on this stack.