LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2006, 10:02 AM   #1
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Rep: Reputation: 0
Crontab problems with sound-recorder


I am using Ubuntu 5.10, with a gnome desktop (Clearview?) Run Level is 2. I want to record the opera every Tuesday night so that I can listen to it later.

If I set up crontab like this:
02 20 * * 2 sound-recorder -c 1 -S 40:00 -f wav opera.wav
it works.

If I set up crontab like this:

02 20 * * 2 sound-recorder -c 1 -S 240:00 -f wav opera.wav
it never starts.

-S 240 minutes is a valid parameter for sound-recorder and works just fine from the command line. Why not from cron?
 
Old 06-08-2006, 10:18 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Check /var/log/cron for error messages.
 
Old 06-08-2006, 08:04 PM   #3
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Original Poster
Rep: Reputation: 0
Hmmm. No such directory on my Ubuntu system. Any other ideas?
 
Old 06-08-2006, 09:34 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Take a look at /etc/syslog.conf to see where cron messages are routed. For example:

Quote:
cron.* /var/log/cron
This would indicate that the messages are in /var/log/cron. If you see no mention of cron in /etc/syslog.conf, then the cron messages are in the default destination, usually '/var/log/messages'.
 
Old 06-09-2006, 08:57 PM   #5
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Original Poster
Rep: Reputation: 0
Well, this process tells me that the log should be
var/log/cron.log.

vaf/log is there, but no cron.log. locate doesn't find it either.

Does that mean that cron thinks everything is okedoke?
 
Old 06-09-2006, 09:20 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
OK, I installed Ubuntu 5.10 to check out what's going on. The cron entry in /etc/syslog.conf is commented out. Remove the '#' at the beginning of the line, and save the file.

Restart sysklogd to pick up the change:

/etc/init.d/sysklogd restart

Restart cron to verify logging has started:

/etc/init.d/cron restart

You should now see entries in /var/log/cron.log. Rerun your test and check for errors.
 
Old 06-11-2006, 11:02 AM   #7
AnEyeForTexas
LQ Newbie
 
Registered: Jun 2006
Location: San Marcos, Texas
Distribution: Ubuntu Breezy
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you so much! I enabled the cron.log (that would have been so useful to know about when I started this project), rescheduled it for today and let it run.

Now it works. I just don't get it -- nothing has changed (and I did check and recheck everything before coming to this forum); nevertheless, I'm glad to have the log working so that I can see future mistakes.

Now if I just understood why ...

Thanks again -- I really appreciate your help.

Gary
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newb trying to use sound-recorder fatherg Linux - Software 0 04-01-2004 07:32 PM
Sound Recorder PionexUser Linux - General 1 09-12-2003 12:46 AM
sound recorder steved123 Linux - General 2 03-15-2003 07:53 PM
sound recorder Mark_Grieveson Linux - Newbie 2 02-22-2003 02:17 PM
Sound Recorder mickhs Linux - General 2 12-09-2001 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration