aboutsummaryrefslogblamecommitdiff
path: root/man/man1/try.1
blob: d3dcd1de4c086a0d85f97399152997f78455c4fc (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                               



                                                                      
                                                        



                                                                            



                                                                               
  
            




                               
.TH TRY 1 "February 2016" "Manual page for try"
.SH NAME
.B try
\- attempt a command up to a certain number of times until it succeeds
.SH USAGE
.B try [-hv] [-i INTERVAL] [-n ATTEMPTS] [--] COMMAND...
.SH DESCRIPTION
Runs the given command up to a fixed number of times until it exits zero. If
all attempts fail, writes buffered error output from all attempts to stderr.
.P
Option -h gives help, option -v turns on verbose output, option -i specifies an
optional number of seconds between attempts, and option -n specifies the number
of attempts; defaults to 3. Options may be terminated with --. The remaining
arguments are the command to run.
.P
   $ try gms
   $ try -v -n3 maybe
.SH SEE ALSO
maybe(1)
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>