summaryrefslogtreecommitdiffstats
path: root/retiolum/hosts/.scripts/sanitize.sh
blob: 83f45aefb947e09df7be66fe75658d7d3820ba54 (plain)
1
2
3
4
5
6
7
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