diff options
author | Lassulus <Lassulus@googlemail.com> | 2011-05-11 14:05:30 +0200 |
---|---|---|
committer | Lassulus <Lassulus@googlemail.com> | 2011-05-11 14:05:30 +0200 |
commit | 3270ecbbe07a37bd78b27de38d87081522376334 (patch) | |
tree | feba22605044043025b8a1449ed0b3c0c1913d2d /hosts/.scripts/sanitize.sh | |
parent | 7c8a97766d1125b9df87ded0bb0eec39eea81130 (diff) | |
parent | a035404440927a6a8d5242442bdc1e3661cf9af6 (diff) |
Merge branch 'master' of github.com:miefda/retiolum
Diffstat (limited to 'hosts/.scripts/sanitize.sh')
-rwxr-xr-x | hosts/.scripts/sanitize.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hosts/.scripts/sanitize.sh b/hosts/.scripts/sanitize.sh new file mode 100755 index 00000000..83f45aef --- /dev/null +++ b/hosts/.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 |