until clause
Halt script execution until the given boolean clause becomes true.
clause
signaled
function allows the wait to be interrupted by an interactive user
who types the user sends a quit signal.
until $elapsed() > 5m | $signaled(quit)
until
command provides the primary mechanism by
which the timing of control system activities is scheduled. The
condition that you provide is re-evaluated every 100ms until it
becomes satisfied. At that point the next command in the script
is executed.