[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Limiting the size of log files



> In RHL , edit the file /etc/crontab to cause
> /etc/cron.[daily/weekly/monthly] to be run at times when the machine is
> actually on.
>
> For example, change
>
> 02 4 * * * root run-parts /etc/cron.daily
>
> to
>
> 02 10 * * * root run-parts /etc/cron.daily
>
> so that it executes at 2 minutes past 10 am instead of 2 minutes past 4
> am.
>
> Atul

or as Thats suggested: (from an earlier mail)

Try anacron:

http://www.rpmfind.net/linux/RPM/rawhide/1.0/i386/RedHat/RPMS/anacron-2.1-1.
i386.html

>From its description:

"Anacron (like `anac(h)ronistic') is a periodic command scheduler.  It
executes commands at intervals specified in days.  Unlike cron, it does not
assume that the system is running continuously.  It can therefore be used
to control the execution of daily, weekly and monthly jobs (or anything
with a period of n days), on systems that don't run 24 hours a day.  When
installed and configured properly, Anacron will make sure that the commands
are run at the specified intervals as closely as machine-uptime permits."

Thaths
--


hth,

Sharukh.

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.