• On TechRepublic: 10 cool USB flash drive tricks
advertisement
February 3, 2006 8:10 AM PST

Cocktail 3.7 not running weekly and monthly scripts under Mac OS X 10.4.3 and 10.4.4

by CNET staff
  • Font size
  • Print
  • 11 comments

For some users, Cocktail 3.7 fails to run the Mac OS X standard weekly and monthly maintenance scripts, despite being set to do so.

MacFixIt reader Gabriel Dorado writes:

"Cocktail 3.7 only runs the daily script and not the weekly or monthly ones even when they are selected at 'System/Scripts' and you click Run. Likewise when you run the Pilot with all tasks selected.

You can verify that the logs have not been run by launching the Terminal (located in Applications/Utilities) and entering the command:

  • ls -al /var/log/*.out

where you will see the following if the scripts did not run:

  • -rw-r--r-- 1 root wheel 22378 Jan 12 03:15 /var/log/daily.out

and the following if the scripts did run:

  • -rw-r--r-- 1 root wheel 112831 Feb 1 10:38 /var/log/daily.out
  • -rw-r--r-- 1 root wheel 938 Feb 1 20:01 /var/log/monthly.out
  • -rw-r--r-- 1 root wheel 2800 Feb 1 20:07 /var/log/weekly.out

Until the bug is fixed, you can manually run the weekly and monthly scripts via the following Terminal commands (press return after each):

  • sudo periodic monthly
  • sudo periodic weekly

Feedback? Late-breakers@macfixit.com.

Resources

  • Cocktail 3.7
  • Late-breakers@macfixit.com
  • More from Late-Breakers
  • Recent posts from MacFixIt
    Address Book: Search not working properly
    iTunes 9.0.3 breaks AirTunes connection for some
    Apple releases Aperture 3.0
    Manage iCal's automatic e-mail generation for invitations
    CNET TV Apple Byte: Apple faces critics
    Weekly Utilities Update: Net Monitor, MiniUsage, TimeMachineEditor, more...
    Odds and Ends: Essential video codec packs for OS X
    Address Book: Unable to add, view contacts
    Add a Comment (Log in or register) (11 Comments)
    • prev
    • next
    by griff--2008 February 3, 2006 11:05 AM PST
    I have stopped using Cocktail or any other Unix maintenance application in
    favour of Macaroni. It's functions can be controlled in a System Preferences
    panel. Once set, it runs all Unix maintenance scripts faithfully on schedule
    but waits for the computer to be active before doing so. It is totally
    transparent and runs in the background. It also repairs permissions weekly
    and will rid installations of any language-based resources (localization) that
    you specify once a month. Version 2.0.6 is the most up-to-date, but will not
    run on MacIntel machines yet.

    Griff
    Reply to this comment
    by jgleigh February 3, 2006 11:05 AM PST
    >
    This is a reply to a previous comment by griff--2008


    There is a beta of 2.0.7 that will run on the new Intel machines.
    Reply to this comment
    by Ilgaz February 4, 2006 6:51 AM PST
    Most of cocktail users also have Macaroni. They are different tools, cocktail is
    mainly used for cache cleaning etc.

    The problem here is: The "troubled guy" sends a bug report to Macfixit.com
    instead of using built in bug reporting in Cocktail.

    I have used that built in feature to alert Cocktail author. I am sure he will
    provide a fix or insight into problem.
    Reply to this comment
    by MacFixItUser February 4, 2006 6:51 AM PST
    >
    This is a reply to a previous comment by Ilgaz


    The problem is that people like you never discovered this issue.

    Thanks to the "troubled guy" for reporting the issue. Thanks to actions like that
    everybody may know and the issue can be explained and fixed quicker.

    Grow up!
    Reply to this comment
    by Ilgaz February 4, 2006 6:51 AM PST
    >>
    This is a reply to a previous comment by null


    I have a good clue who sent that report and who are you sir.

    You should grow up. Sending bogus feedback to versiontracker not enough
    anymore?
    Reply to this comment
    by Kristofer.Szymanski February 4, 2006 9:39 AM PST
    If you run cron scripts using Cocktail, the output is redirected to other log files.
    You can view these logs by choosing Outputs from the Window menu.
    Reply to this comment
    by Kristofer.Szymanski February 4, 2006 12:32 PM PST
    Cocktail is properly running all three cron scripts. However, if
    you run cron scripts using Cocktail, the output is redirected to other log files
    (located in /Library/Application Support/Cocktail/ - you can view these logs by
    choosing Outputs from the Window menu) and the log files (.out) in var/log/ are
    not modified.
    Reply to this comment
    by artie505 February 4, 2006 12:32 PM PST
    >
    This is a reply to a previous comment by Kristofer.Szymanski


    No utility of which I'm aware writes to the /var/log/xxx.out logs when
    running the cron scripts.

    For confirmation that the crons have been run launch /Applications/Utilities/
    Console/system.log and you should see the following text

    Feb 4 23:51:31 Artie's-Computer syslogd: restart
    Feb 4 23:51:31 Artie's-Computer syslogd: hostname changed, "localhost" to
    "Artie's-Computer"
    Feb 4 23:51:31 Artie's-Computer sudo: artie : TTY=unknown ; PWD=/ ;
    USER=root ; COMMAND=/bin/sh /etc/weekly
    Feb 4 23:51:32 Artie's-Computer kernel: resize: max chain len 16, new table
    size 8192
    Feb 4 23:51:57 Artie's-Computer kernel: resize: max chain len 18, new table
    size 16384
    Feb 4 23:52:09 Artie's-Computer syslogd: restart
    Feb 4 23:52:09 Artie's-Computer sudo: artie : TTY=unknown ; PWD=/ ;
    USER=root ; COMMAND=/bin/sh /etc/monthly
    Feb 4 23:52:09 Artie's-Computer syslogd: restart

    in which the first "restart" represents the daily script, etc.
    Reply to this comment
    by Ilgaz February 4, 2006 12:32 PM PST
    >>
    This is a reply to a previous comment by artie505


    Well Macaroni looks when did a script run by its (out file) time stamp. So when a
    user has Macaroni, if he/she has Cocktail too and run all scripts and when
    cocktail changes the "out" file stamp of the system, it would count as run.

    I think , it could be achieved doing x.job >~/Application Support/Utility

    So output will be redirected.

    So, scripts run in fact, their .out files are staying away from system directories,
    good...
    Reply to this comment
    by artie505 February 4, 2006 9:24 PM PST
    I'm reposting this with a more informative title and in a more visible location:

    No utility of which I'm aware writes to the /var/log/xxx.out logs when
    running the cron scripts.

    For confirmation that the crons have been run launch /Applications/Utilities/
    Console/system.log and you should see the following text

    Feb 4 23:51:31 Artie's-Computer syslogd: restart
    Feb 4 23:51:31 Artie's-Computer syslogd: hostname changed, "localhost" to
    "Artie's-Computer"
    Feb 4 23:51:31 Artie's-Computer sudo: artie : TTY=unknown ; PWD=/ ;
    USER=root ; COMMAND=/bin/sh /etc/weekly
    Feb 4 23:51:32 Artie's-Computer kernel: resize: max chain len 16, new table
    size 8192
    Feb 4 23:51:57 Artie's-Computer kernel: resize: max chain len 18, new table
    size 16384
    Feb 4 23:52:09 Artie's-Computer syslogd: restart
    Feb 4 23:52:09 Artie's-Computer sudo: artie : TTY=unknown ; PWD=/ ;
    USER=root ; COMMAND=/bin/sh /etc/monthly
    Feb 4 23:52:09 Artie's-Computer syslogd: restart

    in which the first "restart" represents the daily script, etc.
    Reply to this comment
    by Ilgaz February 6, 2006 7:52 AM PST
    As a cocktail user here I used the built in bug reporting of application to tell
    about this "bug".
    Here is the response I got which explains in fact these scripts mentioned runs
    too

    (pasting below, posted to macfixit mail too)

    "
    Hello,

    Thank you very much for your email. Cocktail is properly running all three
    cron scripts. However, if
    you run cron scripts using Cocktail, the output is redirected to other log files
    (located in /Library/Application Support/Cocktail/ - you can view these logs
    by
    choosing Outputs from the Window menu) and the log files (.out) in var/log/
    are
    not modified.

    Regards,

    Kristofer Szymanski
    Maintain
    "
    Reply to this comment
    (11 Comments)
    • prev
    • next
    advertisement

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader