summaryrefslogtreecommitdiffstats
path: root/hosts/.scripts
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-11 14:04:38 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-05-11 14:04:38 +0200
commitc3acb72fd912b9cee6590b37153b09e29c88599a (patch)
treebae9371069b6c13f5b7126dcf091c3c064cda0af /hosts/.scripts
parenta035404440927a6a8d5242442bdc1e3661cf9af6 (diff)
added alternative graph setter variable, fixed default opener
Diffstat (limited to 'hosts/.scripts')
-rwxr-xr-xhosts/.scripts/sanitize.sh12
1 files changed, 8 insertions, 4 deletions
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