summaryrefslogtreecommitdiffstats
path: root/retiolum
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
commit436512a5b3cbafa44f6db9c54fc7eb66bcb7eb21 (patch)
tree571c142375f45f96bdc6e39cf09a8438d1bc9fb5 /retiolum
parent638c7d31953cfa73e5efecabf0bdb62276ae44fa (diff)
added alternative graph setter variable, fixed default opener
Diffstat (limited to 'retiolum')
-rwxr-xr-xretiolum/hosts/.scripts/sanitize.sh12
1 files changed, 8 insertions, 4 deletions
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