I was over on the openwrt forum and I had a user help me with making a script, but I am having trouble with it.
Basically I have a openwrt router with a microphone attached, and I want to record throughout the day, automatically. He told me to try while loop. I took the while loop and just tried the arecord command, which labels the file correctly but for some reason it will put a ? at the end of the file name so its like 2013-02-10-12:20:10.wav? seems it keeps me from transferring it over via ftp.
I get the error unexpected end of file expecting "done" or something like that.
while true
do
echo "recording started"
arecord -f cd -d 10 `date +"%Y-%m-%d-%T"`.wav
done