I have Linuxlite 2.2 installed on a Dell 3000 desktop with 2GB of RAM. When I went to the terminal and typed crontab -e, I used nano to setup my cronjob:
*/10 * * * * /usr/bin/arecord -t wav -f cd -d 44 /home/randy/Music/test.wav
This works fine except that there is no audio. When I run this from the terminal, everything works fine.
/usr/bin/arecord -t wav -f cd -d 44 /home/randy/Music/test.wav
Any ideas why it is not working from Cron? What can I try out and post back? I have Crunchbang installed as well on this machine and I have no issues at all regarding the above. I had Zorin installed and also had no issues. It seems to be with Linux Lite. I have a post on their forum as well but thought that maybe someone in this forum might have me try something I missed.
you need a newline (empty line) as last one in the crontab. At least it was the fact before, due to many editors not treating the newline correctly (nano being one of them, it seems).
DIAGNOSTICS A fairly informative usage message appears if you run it with a bad command line. cron requires that each entry in a crontab end in a newline character. If the last entry in a crontab is missing the newline, cron will consider the crontab (at least partially) broken and refuse to install it.
Sweaty lads picking up the soap | I love the new "Ignore user" button
I'm no 'cron' expert but do can you run something else with those settings
*/10 * * * * /home/randy/bin/sound.sh
#!/bin/bash /usr/bin/arecord -t wav -f cd -d 44 /home/randy/Music/test.wav
BunsenLabs Forums now Open for Registration