until
Simple shell loop that repeats until it receives zero as return value. More information: https://www.gnu.org/software/bash/manual/bash.html#index-until.
- Execute a command until it succeeds:
until ; do :; done
- Try to connect to an SSH host until gracefully disconnected:
until ssh @; do sleep ; done
- Wait for a systemd service to be active:
until systemctl is-active ; do ; sleep 1; done;
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
