noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

noxz.tech/software/rspan/index.www
1usage:
2.B rspan
3.U interval
4.U file
5.U arguments "" [
6.U ... ]
7
8rspan is a randomized time span creator, a program that upon execution creates
9a random timeout based on given interval. When the timeout ends, the given file
10will get executed with potentially given arguments.
11
12.HnS 1
13Installation
14.HnE
15
16Edit config.mk to match your local setup (rspan is installed into the
17.I /usr/local
18namespace by default), then simply enter the following command to install (if
19necessary as root):
20
21.CDS
22.COS
23make clean install
24.COE
25.CDE
26
27.HnS 1
28Example usage of rspan
29.HnE
30
31One typical usage area of rspan is together with the crontab
32
33.CDS
34.COS
35# surprise Gorac some time in the morning
3630 6 * * * su -c 'rspan 120 surprise' gorac
37
38# turn Steves lights off some time in the evening
390 18 * * * su -c 'rspan 180 lights --off' steve
40.COE
41.CDE
42
43get source
44.URL //noxz.tech/git/rspan.git here .