dob Apprentice


Joined: 04 Oct 2002 Posts: 199 Location: S.L.P.
|
Posted: Wed Dec 18, 2002 1:03 pm Post subject: Script that doesn't get run by cron.daily / crontab |
|
|
I'm using a small shell script taken from Debian that is used to rotate & gzip logs in /var/log
When I run the script 'manually', as root, it does exactly what it's supposed to do and rotates my log.
Therefore I put it in /etc/cron.daily and expected it to rotate my log files, however it doesn't, even if my box stays up for 24h.
I tried adding it in root's crontab
| Code: | 30 5 * * * /usr/local/bin/rotate-logs > /dev/null
|
But this morning my logs had not been rotated either.
Before you ask, vcron 3.0.1-r1 is running and started by default on boot.
/var/spool/cron/lastrun/cron.daily shows that cron.daily has been executed today.
My script in /usr/local/bin has the following permissions
-rwx------ 1 root root 1.2K 2002-11-05 12:22 rotate-logs
and I have a symlink in /etc/cron.daily pointing to it
The script can be seen at this url: http://abusenospam.free.fr/rotate-logs
So any idea of why it doesn't get run by cron (or why it fails), though it works just fine when ran by hand? |
|