summaryrefslogtreecommitdiffstats
path: root/census/sched-arping
diff options
context:
space:
mode:
authorkrebs <krebs@fuerkrebs>2011-11-04 12:40:09 -0400
committerkrebs <krebs@fuerkrebs>2011-11-04 12:40:09 -0400
commitc74c87e070eadac2acede8a416e7a0df90beb2df (patch)
tree47989fedfa4c92f0bf03c3efe5afadc57e4e16ad /census/sched-arping
parent29b328140d294d9f688f562f1da5115fe2d57d4c (diff)
//census: add scheduler, update Makefile
sched-arping schedules the arping script call by utilizing the //util/bin/magic functionality
Diffstat (limited to 'census/sched-arping')
-rwxr-xr-xcensus/sched-arping8
1 files changed, 8 insertions, 0 deletions
diff --git a/census/sched-arping b/census/sched-arping
new file mode 100755
index 00000000..d281cac3
--- /dev/null
+++ b/census/sched-arping
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+TMP=`mktemp`
+crontab -l >$TMP
+
+echo "23 * * * * $PWD/arping_users.py > $PWD/../db/arping" |
+../util/bin/magic "arping" create $TMP
+crontab $TMP