On 13:20 24 Dec 2002, Hauser Marcel <[EMAIL PROTECTED]> wrote: | Anthony E. Greene wrote: | >On 24-Dec-2002/06:11 +0100, Hauser Marcel <[EMAIL PROTECTED]> wrote: | >>if i have the following in my crontab: | >> | >>01 4 * * * root run-parts /etc/cron.daily | >>05 0 * * * root /etc/something/crontab | >> | >>and the /etc/something/crontab scripts takes longer than until 4:01 to | >>finish.... will the scripts in /etc/cron.daily "wait" until | >>/etc/something/crontab has finished ? | > | >No. | | ok.. thanks :) but how could i fix this ? | | i have a tool which creates squid reports on a monthly basis. This Tool | runs very long (depends how big the log file is for a month of data). If | i start it at 0:05 everything is fine until 04:01 where the logrotate | script is fired up... which logrotates the squid logfiles (if end of | month) away, while the squid reporting tool still depends on it!
You have a few choices. For this situation I'd suggest running the job _after_ the logrotate, and just use the rotated log as input data instead of the main log. This is arguably cleaner anyway, because squid won't be writing to a log you're trying to process. -- Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/ ... What is the sound of one tentacle writhing? - Squid Zen -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list