diff options
Diffstat (limited to '.scripts/sanitize.sh')
-rwxr-xr-x | .scripts/sanitize.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/sanitize.sh b/.scripts/sanitize.sh new file mode 100755 index 00000000..83f45aef --- /dev/null +++ b/.scripts/sanitize.sh @@ -0,0 +1,8 @@ +GRAPH_SETTER=dot +LOG_FILE=/var/log/everything.log + +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 |