diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-11 14:04:38 +0200 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-11 14:04:38 +0200 |
commit | 60ab2cca8099141e69dec711d7040b3e91b70824 (patch) | |
tree | 4d7efe5411d4e92c78915c7859740e0960dd49b2 | |
parent | b36a7b7fd0538929d9f9a1fc3716d85984573bc9 (diff) |
added alternative graph setter variable, fixed default opener
-rwxr-xr-x | .scripts/sanitize.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.scripts/sanitize.sh b/.scripts/sanitize.sh index 83f45aef..0a92bf64 100755 --- a/.scripts/sanitize.sh +++ b/.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 |