From 436512a5b3cbafa44f6db9c54fc7eb66bcb7eb21 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 --- retiolum/hosts/.scripts/sanitize.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'retiolum/hosts/.scripts/sanitize.sh') diff --git a/retiolum/hosts/.scripts/sanitize.sh b/retiolum/hosts/.scripts/sanitize.sh index 83f45aef..0a92bf64 100755 --- a/retiolum/hosts/.scripts/sanitize.sh +++ b/retiolum/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