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

Jerry VanBrimmer jevb at runbox.com
Fri Dec 31 16:22:46 CST 2004


This is now working! :-)

Thank you Tim!!!


On Fri, Dec 31, 2004 at 02:16:09PM -0800, Jerry VanBrimmer wrote:
> On Fri, Dec 31, 2004 at 11:20:27AM -0600, Tim Young wrote:
> > Actually, the better way to do it would be to do a:
> > /home/jerry/bin/rsync_demo.sh | /usr/bin/logger -t "RSYNC_DEMO"
> 
> Okay, now I am trying your idea Tim. Here is the current contents of my
> files:
> 
> rsync_demo.sh:
> ----begin---------------------------------------------------------
> #!/bin/bash
> 
> PATH=/usr/local/bin:/usr/freeware/bin:/usr/bin:/bin:/home/jerry/bin
> 
> rsync -avr
> distro.ibiblio.org::distros/slackware/slackware-10.0/patches/packages/
> /home/jerry/downloads/slackware/10.0/patches/packages/
> 
> exit 0
> ----end----------------------------------------------------------
> Note: vim wrapped the rsync line into three lines above.
> 
> 
> output of crontab -e
> ----begin-------------------------------------------------------
> */3 * * * * /usr/bin/getmail
> */4 * * * * /usr/bin/getmail --rcfile verizon
> */5 * * * * /usr/bin/getmail --rcfile spamarrest
> */10 * * * *  /home/jerry/bin/rsync_demo.sh | /usr/bin/logger -t
> "RSYNC_DEMO"
> ----end--------------------------------------------------------
> Note: vim wrapped the last line above into two lines.
> 
> 
> 
> 
> 
> -- 
> The KING is coming!..................Rev. 1:7
> The bottom line......................John 3:3-7
> Linux User #153217..................http://counter.li.org
> 
> 
> _______________________________________________
> 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