cron.daily questions
Rob Blomquist
rob.blomquist at verizon.net
Fri Oct 6 03:31:58 UTC 2006
On Thursday 05 October 2006 08:40, D. R. Evans wrote:
> I installed tmpreaper yesterday, and configured it (or so I thought)
> to delete files with a ctime > 30 days from the /tmp tree.
>
> But this morning there are still lots of files with ctime > 30 days
> present in the /tmp tree...
>
> So:
>
> 1. How do I figure out what time of day the jobs in cron.daily are run?
Well, cron takes care of the jobs in cron-daily, you should not edit it. What
you want to do is edit the root crontab file for system wide processes, and a
user crontab for user processes.
For more on this, you can read the manpage for cron or crontab. Or go to one
of the 86 million pages that show how to properly code cron commands. I
always put the code in a top line of each crontab, so I don't need to see it
every time I want to edit a crontab.
> 2. How do I find the output from the jobs that are run in cron.daily?
Read up on cron, either in the man pages or on the web. If you have a
functioning smtp server, cron can send an email every time it runs a job with
the output from that job.
Rob
--
Mountlake Terrace, WA
More information about the kubuntu-users
mailing list