diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-04-07 13:02:41 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-04-07 13:02:41 +0200 |
commit | 9eb76adec8d6a6f15a461da7c5e1e6920a92105a (patch) | |
tree | 42b4759b463edb2c76bcdd94077ac0acc3b95da1 /tri-influx-exec | |
parent | 384817a40c541ee48da3bdb5f88508fe871acf38 (diff) | |
download | wifi-triangulator-9eb76adec8d6a6f15a461da7c5e1e6920a92105a.tar.gz wifi-triangulator-9eb76adec8d6a6f15a461da7c5e1e6920a92105a.tar.bz2 wifi-triangulator-9eb76adec8d6a6f15a461da7c5e1e6920a92105a.tar.xz wifi-triangulator-9eb76adec8d6a6f15a461da7c5e1e6920a92105a.zip |
o Better logging.
Diffstat (limited to 'tri-influx-exec')
-rwxr-xr-x | tri-influx-exec | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tri-influx-exec b/tri-influx-exec new file mode 100755 index 0000000..49dff82 --- /dev/null +++ b/tri-influx-exec @@ -0,0 +1,23 @@ +#!/bin/bash + +file=tri-influx-exec-$$ + +rm -f $file + +buf=() + +while read line +do + l=${line//#*} + echo l: $l > /dev/stderr + + buf+=($l) + + if [[ $l =~ ";" ]] + then + echo cmd: ${buf[*]} > /dev/stderr + echo ${buf[*]} + buf=() + fi + +done |