Hi all, I'm having an issue with Kcron:
I can run a script manualy but It won't properly work when launched from Cron
The script should create a pipe into /tmp/ to transcode an mms radio stream and save the resulting mp3 to a specified folder (if used with cron, you can make your own "podcasts" since it renames the files adding the date.
The script is placed here:
http://www.pplux.com/index.php?s=radio&sbutt=Go
If launched manualy ...
- An mms stream begins to be captured; mplayer, mencoder, mimms, gogo and lame are nedded (I believe)
- /tmp/radio_pipe is created
-/home/folder_you_want/file.mp3 is created
-/tmp/radio_pipe/ is removed
But when the script is launched by Cron...
- An mms stream begins to be captured
- /tmp/radio_pipe is created
- BUT NO MP3 IN CUSTOM FOLDER IS CREATED
- /tmp/radio_pipe/ is removed
Why can't I have the script properly working when launched fron cron?, It can't write the mp3 file to custom folder, created in /home/..../folder (with writing permisions)
I have given writting permisions (to anyone) to the folder that is supoused to hold the mp3.
I've made the script "executable"
AND, I ofcourse save my changes in Kcron in order to apply them.
As far as I know there is no need to restart Cron since it look for changes every minute (or that is said in my log), ANYWAY It didn't either work after rebooting.
Any help would be appreciate
I can run a script manualy but It won't properly work when launched from Cron
The script should create a pipe into /tmp/ to transcode an mms radio stream and save the resulting mp3 to a specified folder (if used with cron, you can make your own "podcasts" since it renames the files adding the date.
The script is placed here:
http://www.pplux.com/index.php?s=radio&sbutt=Go
If launched manualy ...
- An mms stream begins to be captured; mplayer, mencoder, mimms, gogo and lame are nedded (I believe)
- /tmp/radio_pipe is created
-/home/folder_you_want/file.mp3 is created
-/tmp/radio_pipe/ is removed
But when the script is launched by Cron...
- An mms stream begins to be captured
- /tmp/radio_pipe is created
- BUT NO MP3 IN CUSTOM FOLDER IS CREATED
- /tmp/radio_pipe/ is removed
Why can't I have the script properly working when launched fron cron?, It can't write the mp3 file to custom folder, created in /home/..../folder (with writing permisions)
I have given writting permisions (to anyone) to the folder that is supoused to hold the mp3.
I've made the script "executable"
AND, I ofcourse save my changes in Kcron in order to apply them.
As far as I know there is no need to restart Cron since it look for changes every minute (or that is said in my log), ANYWAY It didn't either work after rebooting.
Any help would be appreciate
Comment