Forum Moderators: phranque

Message Too Old, No Replies

Getting all Cron Jobs to work....

         

woldie

8:00 am on Sep 9, 2004 (gmt 0)

10+ Year Member



Hi,

I've got quite a few cron jobs in my /etc/cron.daily directory, but if I do crontab -l that lists the current cron job even though there are others in the directory.

The reason why I am asking is because my current cron job updates the RSS feed, but I have another which backs up the database. However the cron job which does the database did not run, it only runs the current cron job which is the RSS feed. Am I right?

What I would like to do is to get both cron jobs working. Now do I have to make each one an executable in the way of chmod 755? I'm not quite sure, just wondering the best way to overcome this.

Thanks

W. :o)

py9jmas

9:43 am on Sep 9, 2004 (gmt 0)

10+ Year Member



crontab -l lists the current user's crontab, not the system crontab. User crontabs (including root's) are store under /var/cron/tabs/ (on my FreeBSD system), whereas the system crontab is /etc/crontab. /etc/crontab will probably contain a command that will execute all executable scripts in /etc/cron.daily once a day. Check the documentation for whatever system you're using to. I expect your script should be chmoded 755.