Hi,
On 09/23/2010 03:29 PM, Nitesh Mistry wrote:
On Wed, Sep 22, 2010 at 08:42:01PM +0530, Rony wrote:
I downloaded 'mpg123' from apt and created an executable script to run 'mpg123 song.mp3' and the script worked fine. Then I added it to the user cron job but it did not play without login. However the same script plays the song with the root's cron job without login. So if you don't have any allergy :-) towards running the script as root, the system works.
MPG123!!! That solved my issue. The problem was that I was using wrong program (cvlc, ffplay, etc) for the task at hand.
AND with mpg123, I don't need to run it with sudo or in root's cron. Simply adding 'mpg123<song.mp3>' to my user's cron works even when I am not logged in.
The only drawback that I see with this is that mpg123 does not play my .ogg files.
How about ogg123 ? You might then want to script using the right player for depending on the file type.
Thanks all of you!
Congrats :). Maybe you'd want to blog about your experiment.
cheers, - steve