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.

Thanks all of you!

-- 
Regards,
Nitesh Mistry
www.mistrynitesh.com
PGP key id: CC580416

Attachment: signature.asc
Description: Digital signature

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to