• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

cron help on debian sarge

sciencewhiz

Diamond Member
I have the following script in /etc/cron.hourly that doesn't run:

#! /bin/bash
/usr/bin/rsync -rlz root@192.168.234.198:/var/lib/cvsd/beachbot /var/lib/cvsd/
/bin/chmod -R a+r /var/lib/cvsd/beachbot
/bin/chmod -R a+X /var/lib/cvsd/beachbot

The script runs fine when I run it as root from the commandline.

I've attached my /etc/crontab, which has not been modified from the debian default.

Any ideas?
 
did you do a "crontab -e" as root to edit Root's crontab, or edit the hourly itself? I think crontab -e is the correct command, and you add it to that.
 
Originally posted by: nweaver
did you do a "crontab -e" as root to edit Root's crontab, or edit the hourly itself? I think crontab -e is the correct command, and you add it to that.

crontab -e edits crontab itself. Isn't cron.hourly just a script run by crontab every hour?
 
I found the problem, it had to do with the name of my script.

The crontab calls run-parts which runs all appropriately named files in the /etc/cron.hourly. My script had a period in the name and didn't get run because of that.
 
Back
Top