summaryrefslogtreecommitdiffstats
path: root/retiolum/hosts/.scripts/sanitize.sh
diff options
context:
space:
mode:
authorLassulus <Lassulus@googlemail.com>2011-05-11 14:05:30 +0200
committerLassulus <Lassulus@googlemail.com>2011-05-11 14:05:30 +0200
commite3f90c0c1375857d6a0a5f94ebbdec987e0f5a26 (patch)
tree1856e32c929b2e18ebbc3cc0c95c10a53040d5a0 /retiolum/hosts/.scripts/sanitize.sh
parent53bd7c025d30e0bb1bf69e50458dd7fb9fbb6a88 (diff)
parent638c7d31953cfa73e5efecabf0bdb62276ae44fa (diff)
Merge branch 'master' of github.com:miefda/retiolum
Diffstat (limited to 'retiolum/hosts/.scripts/sanitize.sh')
-rwxr-xr-xretiolum/hosts/.scripts/sanitize.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/retiolum/hosts/.scripts/sanitize.sh b/retiolum/hosts/.scripts/sanitize.sh
new file mode 100755
index 00000000..83f45aef
--- /dev/null
+++ b/retiolum/hosts/.scripts/sanitize.sh
@@ -0,0 +1,8 @@
+GRAPH_SETTER=dot
+LOG_FILE=/var/log/everything.log
+
+sudo pkill -USR2 tincd
+sudo sed -n '/tinc.retiolum/{s/.*tinc.retiolum\[[1-9]*\]: //gp}' $LOG_FILE |\
+ ./parse.py | tee retiolum.dot |\
+ $GRAPH_SETTER -Tpng -o retiolum.png
+xdg-open retiolum.png