summaryrefslogtreecommitdiffstats
path: root/retiolum/hosts/.scripts/sanitize.sh
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum/hosts/.scripts/sanitize.sh')
-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