Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-01-07 12:51:45

#! Die Hard
From: Ottawa, Canada
Registered: 2012-11-15
Posts: 624

Cron issue in Linux Lite

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.


Cheers Randy - my web site - My radio show Sundays  noon-2pm EST or 89.1 fM


Be excellent to each other!

#2 2015-01-07 15:25:21

#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826

Re: Cron issue in Linux Lite

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).

       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


#3 2015-01-07 16:30:29

#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667

Re: Cron issue in Linux Lite

I'm no 'cron' expert but do can you run something else with those settings

*/10 * * * * /home/randy/bin/


/usr/bin/arecord -t wav -f cd -d 44 /home/randy/Music/test.wav

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad


Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo