I'm still trying to nail down the problem and hopefully someone can help me.
When I run my code from the terminal, it works. When it is run from Cron, there is no recording. The file is created but when I open it, nothing. No sound, and the file size stays at 44k. When I run from the terminal, I can see the file size increasing when I look at it from a thunar window.
Any idea what is going on and what I should do?
This is the code I am using:
arecord -t wav -f cd -d 44 /home/randy/chuo-radio-shows/testaudioJUN0514.wav
Here is the crontab entry :
9 11 * * 4 arecord -t wav -f cd -d 44 /home/randy/chuo-radio-shows/testaudioJUN0514.wav
I am using LinuxLite 2.0 which is based on Ubuntu 14.04