On Wednesday 22 September 2010 12:20 PM, Nitesh Mistry wrote:
On Wed, Sep 22, 2010 at 12:07:22AM +0530, steve wrote:
Look only if you /want/ step-by-step instructions, if you want to discover the way to achieve it by trial-n-error don't click: http://www.google.com/search?q=linux+cron+music+alarm
I am in no mood for clicking. :D
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.
I did the experiment as I have been wanting to add bells and whistles to a headless ( no monitor and keyboard ) server for making announcements on a small speaker.