summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/randsleep.144
2 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 765a697..ed55e64 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ src/randsleep: src/randsleep.c
${CC} ${CFLAGS} ${LDFLAGS} -o $@ $<
install: src/randsleep
+ install -m 755 src/randsleep ${bin_dir}
+ install -m 644 src/randsleep.1 ${man_dir}/man1
uninstall:
rm -f src/randsleep
diff --git a/src/randsleep.1 b/src/randsleep.1
new file mode 100644
index 0000000..0868c60
--- /dev/null
+++ b/src/randsleep.1
@@ -0,0 +1,44 @@
+.Dd July 06, 2011
+.Dt RANDSLEEP 1
+.Os
+.
+.
+.Sh NAME
+.
+.Nm randsleep
+.Nd Execute program after sleeping for a random time
+.
+.
+.Sh SYNOPSIS
+.
+.Nm
+.Ar time command args ...
+.
+.
+.Sh VERSION
+.
+This manual documents
+.Nm
+version 0.0
+.
+.
+.Sh DESCRIPTION
+.
+.Nm
+executes
+.Ar command
+after sleeping for up to
+.Ar time
+seconds.
+It is intended for use in cronjobs and similar.
+.
+.
+.Sh AUTHOR
+.
+Copyright (C) 2011 Daniel Friesel
+.Aq derf@finalrewind.org .
+.
+.
+.Sh LICENSE
+.
+You just DO WHAT THE FUCK YOU WANT TO.