Click to See Complete Forum and Search --> : How to rotate logs for all users through cron job??


carlos123
03-09-2003, 02:02 AM
I just installed the package logrotate and am learning how to use it but there is one aspect of it's use that I don't understand.

If I set it to run daily through a cron job for the current user it will run when the current user is logged in right?

But what I want is to set up some kind of global cron job that will run regardless of which user is logged in. From the root on down.

Am I misunderstanding cron jobs? Do they run all the time regardless of whether the user who created the crontab entry is logged in or not?

Any insight on this would be appreciated.

Thanks.

Carlos

chrism01
03-09-2003, 08:46 AM
You are misunderstanding cron :)
Cron runs all the time regardless. The point is that each user can setup their own jobs, which will run under their name, and therefore shouldn't be able to screw anyone else's stuff.
Obviously root can affect his own stuff and anything else if needed.
HTH, reply if not