Women in Technology

Hear us Roar

  Learning the Terminal in Jaguar, Part 1
Subject:   log files just getting longer and bigger in 10.2.
Date:   2002-12-07 13:55:58
From:   anonymous2
I noticed that the log files such as daily.out, weekly.out, and monthly.out are just getting bigger. Instead overwriting the old put as in 10.1, the outputs are added to the end of the log files, making them longer every day.

Anything I can do to change that ?


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • log files just getting longer and bigger in 10.2.
    2002-12-09 07:52:46  charlesa1 [View]

    Under 10.1, daily.out was created using...

    # /etc/daily 2>&1 | tee /var/log/daily.out | mail -s "`hostname` daily output" root

    ... with daily.out being overwritten each day.

    With Jaguar, this has changed to:

    # periodic daily

    Periodic's config file is located in /etc/defaults/periodic.conf - it executes the scripts in /etc/periodic/daily in order and appends to the file specified in the periodic.conf file. You can override the default behavior with /etc/periodic.conf, but I'm not sure how you'd go about configuring periodic.conf to overwrite the output log each day.