You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Problem with Cron

Author (Read 6668 times)

0 Members and 1 Guest are viewing this topic.

Re: Problem with Cron
« Reply #5 on: June 06, 2014, 04:30:37 PM »
 

rmcellig

  • Guest
Your absolutely right!
 

Re: Problem with Cron
« Reply #4 on: June 06, 2014, 01:50:26 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Thanks for posting back with solution.

It's always the little details that get us, isn't it?
Try Linux Beginner Search Engine for answers to Linux questions.
 

Re: Problem with Cron
« Reply #3 on: June 06, 2014, 01:00:00 PM »
 

rmcellig

  • Guest
I found out that in Cron you have to put a full path which I didn't do. So far it's working. I'm still keeping an eye on it though.

Code: [Select]
/usr/bin/arecord -t wav -f cd -d 44 /home/randy/chuo-radio-shows/testaudioJUN0514.wav
 

Re: Problem with Cron
« Reply #2 on: June 06, 2014, 12:39:36 PM »
 

gold_finger

  • Documentation Writer
  • Platinum Level Poster
  • *****
  • 1094
    Posts
  • Reputation: 325
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core2 Duo E7500 3.0GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 4 Series Integrated Graphics
Sorry, don't have an answer for you on this.

Question:  Did you try same thing in either of your other two OS's (Lubuntu or Crunchbang)?

Did the cronjob work on them, but is not working in LL?


Following is just wild guess based on ZERO experience with this:
Just for the hell of it, try making a temporary directory in root -- like "/TESTING" -- and point cronjob to save file there.  Maybe there is something about fact that "/home" is a network location that's causing problem.  If test works, then I'd guess that means cronjob needs to be coded differently to save to networked location.
Try Linux Beginner Search Engine for answers to Linux questions.
 

Problem with Cron
« Reply #1 on: June 05, 2014, 11:15:55 AM »
 

rmcellig

  • Guest
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:

Code: [Select]
arecord -t wav -f cd -d 44 /home/randy/chuo-radio-shows/testaudioJUN0514.wav

I also enclosed my sysinfo if this helps.



[attachment deleted by admin, more than 25 days old]
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section