what do they daily, weekly, and monthly scripts actually do?

Discussion in 'macOS' started by BiikeMike, Aug 4, 2006.

  1. BiikeMike macrumors 65816

    BiikeMike

    Joined:
    Sep 17, 2005
    #1
    I konw they get run, and that ONYX runs them when you tell it to, but what do they do?
     
  2. mad jew Moderator emeritus

    mad jew

    Joined:
    Apr 3, 2004
    Location:
    Adelaide, Australia
    #2
    They remove and purge some temporary files, some system files and old logs. :)
     
  3. BiikeMike thread starter macrumors 65816

    BiikeMike

    Joined:
    Sep 17, 2005
    #3

    Its interesting really, how you are always the one to answer my questions :)
     
  4. mad jew Moderator emeritus

    mad jew

    Joined:
    Apr 3, 2004
    Location:
    Adelaide, Australia
    #4
    I can't take all the credit. Of the fifty four threads you've started here, I've only posted to four. Of course, I'm not sure all those threads would have been questions... :p
     
  5. BiikeMike thread starter macrumors 65816

    BiikeMike

    Joined:
    Sep 17, 2005
    #5

    :D
     
  6. mad jew Moderator emeritus

    mad jew

    Joined:
    Apr 3, 2004
    Location:
    Adelaide, Australia
    #6
    I was just playing with Terminal and thought I'd post back here what exactly happens when the periodicals are executed.

    Daily:
    Code:
    Scratch and junk files are removed.
    NetInfo data is backed up.
    Susbsystem status is checked.
    Mail queue is emptied.
    Network connections are checked.
    The [I]system.log[/I] is rotated.

    Weekly:
    Code:
    Locate database is rebuilt.
    Whatis database is rebuilt.
    The [I]ftp.log[/I], [I]lpr.log[/I], [I]mail.log[/I], [I]netinfo.log[/I], [I]ipfw.log[/I] and [I]secure.log[/I] are rotated.

    Monthly:
    Code:
    The [I]wtmp install.log[/I] and [I]fax[/I] log files are rotated.

    Of course, if the weekly tasks are run, then the daily tasks are run also. Similarly, every time the monthly tasks are run, the weekly and daily tasks are run. On Tiger, these will run either at a specified time (about 3:00AM) or when the machine next wakes form sleep. If the machine is shut down, they will not run again until the next night unless the machine is once again powered off. :)



    If any of this makes sense to you, then you deserve a hearty pat on the back and some pie. :cool:
     

Share This Page