diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-11 13:56:53 +0200 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-05-11 13:56:53 +0200 |
commit | a035404440927a6a8d5242442bdc1e3661cf9af6 (patch) | |
tree | bf51995e785b58a5bb125ac6afcd11e47e8553d8 /hosts | |
parent | fd96728d35ec5af544c139820bd2cda1a3f8bc69 (diff) |
updated sanitize, more generic script
sanitize.sh: has two variables, self explanatory, script is now more enterprise by utilizing xdg-open script
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/.scripts/sanitize.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hosts/.scripts/sanitize.sh b/hosts/.scripts/sanitize.sh index 0342d98b..83f45aef 100755 --- a/hosts/.scripts/sanitize.sh +++ b/hosts/.scripts/sanitize.sh @@ -1,2 +1,8 @@ -sudo sed -n '/tinc.retiolum/{s/.*tinc.retiolum\[[1-9]*\]: //gp}' /var/log/everything.log | ./parse.py | tee retiolum.dot | dot -Tpng -o retiolum.png -mirage retiolum.png +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 |