On 09/21/2010 10:49 PM, Nitesh Mistry wrote:
> On Tue, Sep 21, 2010 at 01:36:50AM +0530, Arun Khan wrote:
> [...snip...]
> When I am not logged in, cron still executes the command (as I can see
> from the syslog) but there is no output. And no message from cron for
> this instance.
>
> Whereas, when I am logged in, the song is played but I also get a
> message (attached) from the cron.
>

 From the error message ...

> libdvdread: Can't stat /media/newdisk/songs/Silk Route - Boondein/01 - 
> Boondein.ogg
> No such file or directory
> [00000419] access_directory access error: /media/newdisk/songs/Silk Route - 
> Boondein/01 - Boondein.ogg: No such file or directory
> [00000419] access_file access error: cannot open file 
> /media/newdisk/songs/Silk Route - Boondein/01 - Boondein.ogg (No such file or 
> directory)
> [00000413] main input error: open of `/media/newdisk/songs/Silk Route - 
> Boondein/01 - Boondein.ogg' failed: could not create access: no suitable 
> access module
> [00000402] signals interface error: Caught Terminated signal, exiting...
> libdvdnav: Using dvdnav version 4.1.3
> libdvdnav: vm: failed to open/read the DVD

...it looks like the reason it fails is because vlc can't access the DVD. 
Judging by the path I guess the DVD is automounted when you are logged in. I'd 
suggest modifying your script to mount your media before attempting to play.

btw, did you google[1] before attempting your experiment ? This is fairly 
common 
thing almost all of us attempt at some point or the other. In the early days 
when linux was not so ^user-friendly^, these hacks were easier to do :-)

cheers,
- steve

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

-- 
random spiel: http://lonetwin.net/
what i'm stumbling into: http://lonetwin.stumbleupon.com/
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to