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

Jerry VanBrimmer jevb at runbox.com
Fri Dec 31 01:54:18 CST 2004


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


The first three lines get my mail for me, and they work just fine. What
do I need to do to line four to get cron to run my script?

Thanks and Happy New Year!!



-- 
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