[CS-FSLUG] How to run a cron script?
David M.
david at davidcentral.net
Fri Dec 31 05:47:03 CST 2004
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
--
David M.
More information about the Christiansource
mailing list