Hi, all!
I was working on my Debian, minding my own business but then I wanted to see what happened if the same user was included on both cron.allow and cron.deny :p
I would have bet that cron.deny was going to override cron.allow for security reasons, but my computer proved me wrong: cron.allow seems to override cron.deny, so if you are on both, you can still cron jobs.
I'm curious about
Using FreeBSD 9, I would like to know what is the good way to split /etc/crontab into several files.
For example, I would like to put all postfix related jobs in /etc/cron.d/postfix, all logrotate related jobs in /etc/cron.d/logrotate and so on.
Of course, I could use periodic, but it seems that all the jobs would be executed around the same time.
Any idea?
According to man 1 cron, it searches
We've just moved servers, from FreeBSD to CentOS. We have around 30 cron jobs which run throughout the day.
Since moving, it seems that some cron jobs are starting but not completing. We can see they kicked off but it's like they have timed out.
No errors in the phperror.log. Cron log shows the tasks starting.
On Debian Squeeze, cron stops running.
I see that Ubuntu uses /etc/cron.{daily,weekly,monthly} for cron jobs. I also see that some things, like updatedb from mlocate, put their jobs there:
$ dpkg -L mlocate|grep y/m
/etc/cron.daily/mlocate
Somtetimes, I would like to disable some of these jobs (mlocate in this case). I can obviously sudo mv /etc/cron.daily/mlocate ~/cron.daily-dont-run and be over with it.
I have a temp directory set up where users can place whatever files they need to send to other users via HTTP.
I believe that if there is any output from a cronjob it is mailed to the user who the job belongs to. I think you can also add something like MAILTO=vivek@nixcraft.in at the top of the cron file to change where the output is sent to.
Can I set an option so that mail alerts sent by cron jobs set by all users will be emailed to root instead of to the user who runs them?
I have a cron job which unzips a file and executes it. The cron is set to unzip, execute and delete the .zip file after. It's executing fine but it's not deleting the file.
I was trying to figure out how to use cron and stupidly, I set the cron job to shutdown computer at each minute. Now, I can't boot into my os. Is there a quick way to load ubuntu without running cron jobs ? I don't want to use a live cd if I can since I have a software raid and would need to install everything (mdadm, etc)