[thelist] Task scheduling in linux CRON - solved

Kipper Timmins kipper_timmins at live.co.uk
Sat Apr 18 10:20:26 CDT 2009


I've gone through the man, and i have tried using the full path
crontab currently looks like

SHELL=/bin/bash
DISPLAY=:0

# m h  dom mon dow   command
40 15 * * * /usr/bin/vlc
40 14 * * * /usr/bin/firefox

and for some reason this works
a friend told me i needed to output the display so yeah there we go, thanks though :)

> Date: Sat, 18 Apr 2009 07:31:10 -0700
> From: hassan.schroeder at gmail.com
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Task scheduling in linux CRON
> 
> On Sat, Apr 18, 2009 at 6:38 AM, Kipper Timmins
> <kipper_timmins at live.co.uk> wrote:
> 
> > # m h  dom mon dow u command
> > 05 14 * * * kipper vlc
> >
> > am i right in thinking that at the specified time this should open vlc media player? the command for opening this at command line on my comp is vlc
> > and this should be at 2:05 on every day of every week in every month right?
> 
> Have you read the man page for crontab??
> 
> Right now, at 5 minutes after 2 in the afternoon, your computer will
> try to run some program named 'kipper', with an argument of 'vlc'.
> I'm surprised you're not getting an email about that error.
> 
> In any case, cron jobs don't inherit your full normal environment, so
> as a matter of course you're best off putting in the full path to any
> command, e.g. /usr/local/bin/vlc (or whatever).
> 
> I'd guess there will be some arguments you need to pass to vlc to
> make it do something specific, too.
> 
> Seriously, though `man crontab -s 5` would help...
> 
> HTH,
> -- 
> Hassan Schroeder ------------------------ hassan.schroeder at gmail.com
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 

_________________________________________________________________
Beyond Hotmail — see what else you can do with Windows Live.
http://clk.atdmt.com/UKM/go/134665375/direct/01/


More information about the thelist mailing list