Hi,
I have a server running an arecord every two hours via cron, basically it logs audio 24/7 in two-hour blocks. What I want to do, on the same server, have a separate arecord script doing short 15 minute recordings at a specific time.
My problem is that the arecord is already running when the 15min arecord starts, and fails. What would be a viable way of getting this to work?
Two-hour arecord
Code:
/usr/bin/arecord -f S16_LE -c1 -r22050 -d 7195 | lame -h - /home/server/recordings/$(date +%m-%d_%H.%M).mp3
15min arecord
Code:
/usr/bin/arecord -f S16_LE -c1 -r22050 -d 900 | lame -h - /home/server/podcast/"noticias-"`date +"%d-%m-%Y"`.mp3
Server is running Ubuntu 8.04LTS. Thanks!