diff options
author | Lars Wirzenius <liw@iki.fi> | 2008-05-18 18:24:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@iki.fi> | 2008-05-18 18:24:26 +0300 |
commit | 735ad6669ce486ef13d9f91118b404a8a4f804d7 (patch) | |
tree | f8bbde7c2e8233c915cf52833934625fa6b1671f | |
parent | 4d6866f449215eedde50f6974c43c0d7d882bb44 (diff) | |
download | extrautils-735ad6669ce486ef13d9f91118b404a8a4f804d7.tar.gz |
Added a manual page for do-until.
-rw-r--r-- | do-until.1 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/do-until.1 b/do-until.1 new file mode 100644 index 0000000..16775e7 --- /dev/null +++ b/do-until.1 @@ -0,0 +1,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. |