From c3acb72fd912b9cee6590b37153b09e29c88599a Mon Sep 17 00:00:00 2001 From: Felix Richter Date: Wed, 11 May 2011 14:04:38 +0200 Subject: added alternative graph setter variable, fixed default opener --- hosts/.scripts/sanitize.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'hosts/.scripts') diff --git a/hosts/.scripts/sanitize.sh b/hosts/.scripts/sanitize.sh index 83f45aef..0a92bf64 100755 --- a/hosts/.scripts/sanitize.sh +++ b/hosts/.scripts/sanitize.sh @@ -1,8 +1,12 @@ -GRAPH_SETTER=dot +GRAPH_SETTER1=dot +GRAPH_SETTER2=circo LOG_FILE=/var/log/everything.log +OPENER=/bin/true 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 + ./parse.py > retiolum.dot + +$GRAPH_SETTER1 -Tpng -o retiolum_1.png retiolum.dot +$GRAPH_SETTER2 -Tpng -o retiolum_2.png retiolum.dot +$OPENER retiolum_1.png &>/dev/null -- cgit v1.2.3