search for: soundchaser

Displaying 2 results from an estimated 2 matches for "soundchaser".

2014 Jul 02
1
recording in mp3
...ok only for close or close_wait events, but it should give you the idea. #!/bin/bash function processevents () { action=0 while true ; do if [ $action == 0 ] ; then timeout=300 else timeout=5 fi read -t $timeout event if [ $? != 0 ] ; then action=0 /data/soundchaser/periodic else if [[ $event =~ ".wav" || $event =~ ".gotit" ]] ; then action=1 fi fi done } cd /data/soundchaser inotifywait -m /data/soundchaser/public_html/done | processevents
2014 Jul 03
1
recording in mp3
...ok only for close or close_wait events, but it should give you the idea. #!/bin/bash function processevents () { action=0 while true ; do if [ $action == 0 ] ; then timeout=300 else timeout=5 fi read -t $timeout event if [ $? != 0 ] ; then action=0 /data/soundchaser/periodic else if [[ $event =~ ".wav" || $event =~ ".gotit" ]] ; then action=1 fi fi done } cd /data/soundchaser inotifywait -m /data/soundchaser/public_html/done | processevents -- _________________________________________________________________...