From: Tomas Mudrunka Date: Wed, 1 Aug 2012 05:13:56 +0000 (+0200) Subject: Added filename output to sleepmon X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=2fbfcde7b31158edd31950a62904dcc72a3966c3;p=mirrors%2FPrograms.git Added filename output to sleepmon --- diff --git a/c/goertzel/sleepmon.sh b/c/goertzel/sleepmon.sh index 3b975ba..42bbcad 100755 --- a/c/goertzel/sleepmon.sh +++ b/c/goertzel/sleepmon.sh @@ -21,6 +21,7 @@ screen=false while getopts "s" OPT; do test "$OPT" == 's' && screen=true; done +echo "Writing to file: $out"; arecord | ./goertzel -n -q -l -t $tresh -d 4 | while read line; do date="$(date +%s)" time="$(echo "$line" | cut -f 1)"