summaryrefslogtreecommitdiff
path: root/do-until.1
blob: 16775e735887818108942b657465c401d533056a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.TH DO-UNTIL 1
.SH NAME
do-until \- repeat a command until it succeeds
.SH SYNOPSIS
.B do-until 
.I command
.IR arg ...
.SH DESCRIPTION
.B do-until
runs a command until it succeeds.
For example, the following invocation runs ssh until the login succeeds:
.sp 1
.nf
.RS
do-until ssh malich
.RE
.fi
.PP
.B do-until
sleeps for one second between invocations.
.PP
.B Note
that the shell expands wild card characters and performs input/output
redirections when the 
.B do-until
command is started, now then 
.B do-until
invokes the command it gets.
If this matters, you may need to invoke the command you need via
"sh -c 'foo > bar'" 
or some similar incantation.
See your shell manual for details.