[CS-FSLUG] How to run a cron script?

Jerry VanBrimmer jevb at runbox.com
Fri Dec 31 10:47:14 CST 2004


On Fri, Dec 31, 2004 at 06:47:03AM -0500, David M. wrote:
> On Friday 31 December 2004 02:54 am, Jerry VanBrimmer wrote:
> > I have this script, called rsync_demo, that I have put in ~/bin. I created
> > this script to download updates from a Slackware mirror and put them in
> > a folder on my machine. If I run the script manually from a terminal like
> > this:
> >
> > $ /home/jerry/bin/./rsync_demo.sh
> >
> > it works just fine and does exactly what I want.
> >
> > Trouble is, I can't get cron to run the script from my crontab. Here's
> > the contents of my crontab file:
> >
> > */3 * * * * /usr/bin/getmail
> > */4 * * * * /usr/bin/getmail --rcfile verizon
> > */5 * * * * /usr/bin/getmail --rcfile spamarrest
> > 0 */1 * * *  /home/jerry/bin/rsync_demo.sh >>/var/log/messages 2>&1
> 
> have you tried using: /home/jerry/bin/./rsync_demo.sh >> /var/log/messages 
> 2>&1

Hmmm, no I haven't tried that, but I will.

Thanks David!

> 
> -- 
> David M.
> 
> _______________________________________________
> ChristianSource FSLUG mailing list
> Christiansource at ofb.biz
> http://cs.uninetsolutions.com
> 

-- 
The KING is coming!..................Rev. 1:7
The bottom line......................John 3:3-7
Linux User #153217..................http://counter.li.org





More information about the Christiansource mailing list