summaryrefslogtreecommitdiffstats
path: root/.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
commit96376f6b8ea283ba6081fdef4798fea17d32311e (patch)
treec9027354f1a9a49b7c25abd441a81557acf89c45 /.scripts/sanitize.sh
parent2dba5d16c1d108666043bcb2aa0083cce449f1b9 (diff)
parentb36a7b7fd0538929d9f9a1fc3716d85984573bc9 (diff)
Merge branch 'master' of github.com:miefda/retiolum
Diffstat (limited to '.scripts/sanitize.sh')
-rwxr-xr-x.scripts/sanitize.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/sanitize.sh b/.scripts/sanitize.sh
new file mode 100755
index 00000000..83f45aef
--- /dev/null
+++ b/.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