Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script that doesn't get run by cron.daily / crontab
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dob
Apprentice
Apprentice


Joined: 04 Oct 2002
Posts: 199
Location: S.L.P.

PostPosted: Wed Dec 18, 2002 1:03 pm    Post subject: Script that doesn't get run by cron.daily / crontab Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum