about summary refs log tree commit diff
path: root/catsit-timer.1
blob: 53f602490b4d39ece5fb9fc049cb28baba2717d6 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.Dd February 25, 2021
.Dt CATSIT-TIMER 1
.Os
.
.Sh NAME
.Nm catsit-timer
.Nd run command at interval
.
.Sh SYNOPSIS
.Nm
.Ar interval
.Ar command ...
.
.Sh DESCRIPTION
The
.Nm
utility runs a command
at an interval.
The command is run once immediately,
then again every
.Ar interval
after waiting for the command to exit
each time.
The
.Nm
utility is not appropriate
for scheduling commands
to run at specific times.
.
.Pp
The format of the
.Ar interval
specifier is a series of integers
followed by units:
.Cm s
for seconds,
.Cm m
for minutes
and
.Cm h
for hours.
An integer with no unit
is assumed to be in seconds.
The
.Ar interval
is the sum of each
integer-unit pair.
For example,
.Cm 1m30s
is equivalent to
.Cm 90s .
.
.Sh EXIT STATUS
If the command exits non-zero,
.Nm
exits with the same status.
.
.Sh SEE ALSO
.Xr catsitd 8
.
.Sh AUTHORS
.An June McEnroe Aq Mt june@causal.agency