On Fri, Sep 24, 2010 at 07:26:40AM +0530, Rony wrote:
On Thursday 23 September 2010 03:29 PM, Nitesh Mistry wrote:
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.
Great. I tried it again in user but I still need to be logged in to at least one session, console or gui. The funny part is that if I log out, the song stops there and continues after I log in again.
My bad. It was a bit of laziness in testing it properly or should I say my ignorance of the difference between a fresh reboot and a simple logging out of the session.
When I said *it worked*, it did work, but at that time, I had just logged out of my session (not logged in to the computer anywhere else). So I assumed that it would be same state as if I had just rebooted the computer and no one logged in yet. But as I discovered, its not the same.
So yes, the command will have to be given in root's cron to work after a fresh reboot.
Sorry for creating confusion. Next time, will bear in mind to test properly. Also updated my blog post [0] accordingly.
Its amazing how much you discover when you do the stuff yourself instead of just following 'how-tos' from the web.
[0] http://www.mistrynitesh.com/blog/Computer_as_an_Alarm_Clock_.html