General > On Topic

Problem with Cron

(1/1)

rmcellig:
Your absolutely right!

gold_finger:
Thanks for posting back with solution.

It's always the little details that get us, isn't it?

rmcellig:
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: ---/usr/bin/arecord -t wav -f cd -d 44 /home/randy/chuo-radio-shows/testaudioJUN0514.wav
--- End code ---

gold_finger:
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.

rmcellig:
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: ---arecord -t wav -f cd -d 44 /home/randy/chuo-radio-shows/testaudioJUN0514.wav

--- End code ---

I also enclosed my sysinfo if this helps.



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

Navigation

[0] Message Index

Go to full version