From b36a7b7fd0538929d9f9a1fc3716d85984573bc9 Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Wed, 11 May 2011 13:56:53 +0200 Subject: updated sanitize, more generic script sanitize.sh: has two variables, self explanatory, script is now more enterprise by utilizing xdg-open script --- .scripts/sanitize.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.scripts/sanitize.sh') diff --git a/.scripts/sanitize.sh b/.scripts/sanitize.sh index 0342d98b..83f45aef 100755 --- a/.scripts/sanitize.sh +++ b/.scripts/sanitize.sh @@ -1,2 +1,8 @@ -sudo sed -n '/tinc.retiolum/{s/.*tinc.retiolum\[[1-9]*\]: //gp}' /var/log/everything.log | ./parse.py | tee retiolum.dot | dot -Tpng -o retiolum.png -mirage retiolum.png +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 -- cgit v1.2.3