mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
until: add example (#22034)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
`until {{command}}; do :; done`
|
||||
|
||||
- Try to connect to an SSH host until gracefully disconnected:
|
||||
|
||||
`until ssh {{username}}@{{host}}; do sleep {{2}}; done`
|
||||
|
||||
- Wait for a systemd service to be active:
|
||||
|
||||
`until systemctl is-active {{[-q|--quiet]}} {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}`
|
||||
|
||||
Reference in New Issue
Block a user