X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=c%2Fgoertzel%2Fsleepmon.sh;h=4896e87327002696a3092d70f5ea4c3351ddf36e;hb=19a509d14a28519397f352f3cd0570c9becf7c47;hp=3ccc670a9d2e7d909e5deec2a2c0fe443d91a8b3;hpb=c9be90d53f9bbcbfa1e69f4d245052450b4bd1b8;p=mirrors%2FPrograms.git diff --git a/c/goertzel/sleepmon.sh b/c/goertzel/sleepmon.sh index 3ccc670..4896e87 100755 --- a/c/goertzel/sleepmon.sh +++ b/c/goertzel/sleepmon.sh @@ -22,7 +22,7 @@ while getopts "s" OPT; do test "$OPT" == 's' && screen=true; done echo "Writing to file: $out"; -arecord | ./goertzel -n i -q -l -t $tresh -d 4 | while read line; do +arecord | ./goertzel -n i -q -l c -t $tresh -d 4 | while read line; do date="$(date +%s)" time="$(echo "$line" | cut -f 1)" level="$(echo "$line" | cut -f 2)" @@ -42,4 +42,5 @@ arecord | ./goertzel -n i -q -l -t $tresh -d 4 | while read line; do lastdate="$date"; done | tee "$out" kill $! +echo echo "Your file: $out"