1 | .\" $Id: rep.1,v 1.2 1997-01-11 19:12:41 ghudson Exp $ |
---|
2 | .\" |
---|
3 | .\" Copyright 1996 by the Massachusetts Institute of Technology. |
---|
4 | .\" |
---|
5 | .\" Permission to use, copy, modify, and distribute this |
---|
6 | .\" software and its documentation for any purpose and without |
---|
7 | .\" fee is hereby granted, provided that the above copyright |
---|
8 | .\" notice appear in all copies and that both that copyright |
---|
9 | .\" notice and this permission notice appear in supporting |
---|
10 | .\" documentation, and that the name of M.I.T. not be used in |
---|
11 | .\" advertising or publicity pertaining to distribution of the |
---|
12 | .\" software without specific, written prior permission. |
---|
13 | .\" M.I.T. makes no representations about the suitability of |
---|
14 | .\" this software for any purpose. It is provided "as is" |
---|
15 | .\" without express or implied warranty. |
---|
16 | .\" |
---|
17 | .TH REP 1 "December 29, 1996" |
---|
18 | .SH NAME |
---|
19 | rep \- repeatedly execute a command |
---|
20 | .SH SYNOPSIS |
---|
21 | .B rep |
---|
22 | [ |
---|
23 | .B \-interval |
---|
24 | ] command args ... |
---|
25 | .SH DESCRIPTION |
---|
26 | .I Rep |
---|
27 | repeatedly executes a command and prints out the output in the same |
---|
28 | place each time. (It uses cursor optimization routines to only update |
---|
29 | characters which have changed.) |
---|
30 | .PP |
---|
31 | If the first argument is a hyphen followed by a decimal number, it |
---|
32 | will be treated as the number of seconds between repetitions. By |
---|
33 | default, the interval is one second. |
---|
34 | .SH EXAMPLES |
---|
35 | .B rep ps -ef |
---|
36 | .PP |
---|
37 | prints out a display of system activity. |
---|
38 | .PP |
---|
39 | .B rep -1 date |
---|
40 | .PP |
---|
41 | puts a digital clock on the screen. |
---|