[X Newbies] Maintenance was Re: Problems Installing Apps
birgit rhoads
wdlnd at adelphia.net
Fri Apr 2 10:20:43 PST 2004
Thank you for the scripts. I put the first one in the terminal but
then found out it is not a terminal script, but a CRON job script. I
tried to create the job in Macaroni but that did not work either. I
made a folder in Users/documents/script/maintenance and copied it into
there, but could not open it from the brouse on Macaroni edit. I know
zilch about Unix commands/script. I guess when Safari slows up again,
I will trash the icon folder. Now my poor Terminal has a bunch of
script written into it that it does not know what to do with;) Gads,
that's poor English.
Birgit
On Apr 2, 2004, at 1:41 AM, Christiaan Knol wrote:
> To delete the Icon files (hint credit from macosxhints.com) type the
> following in the terminal:
>
> find $HOME/Library/Safari/Icons -type f -atime +30 -name "*.cache"
> -delete
>
> This deletes all icons not accessed within 30 days. Change 30 to
> anything else you like. Remove -delete from the end to see what it
> will delete, or add -print just before the -delete to see what it is
> deleting.
>
> I have the following script run as part of my maintenance scripts
> (within Macaroni) which outputs the results to a log file (clears out
> caches and icons). Create a file such as maintenance.sh - I use
> Documents/Scripts to store these and insert whatever commands you wish
> to use in this file. I have included mine below as an example. In
> the terminal, issue the following command to make it executable:
>
> chmod 755 /Users/your_username/Documents/scripts/maintenance.sh
>
> Then within Macaroni create a new job and include the path to the
> script file you just created - I also have a log file in that same
> directory called maintenance.log Macaroni will create this for you if
> there's not one there. As an example, I have included my
> maintenance.sh script below which I have set to run once a week:
>
> #!/bin/sh
>
> # echo start message
> echo "Cache Clean Script Processing"
>
> sudo rm -r /Users/your_username/Library/Caches/*
> sudo rm -r /Library/Caches/*
> sudo rm -r /System/Library/Caches/*
>
> echo "Cache Cleared"
>
> echo "Deleting unused Safari Icons"
>
> find /Users/your_username/Library/Safari/Icons -type f -atime +7 -name
> "*.cache" -delete
>
> echo "Icons Cleared"
>
> Hope this is of some use...
>
> ck
>
> On 02/04/2004, at 3:25 PM, birgit rhoads wrote:
>
>> Randy, I used and like OnyX and still have it installed. The thing I
>> like better about Macaroni is that is does it's work automatically
>> and I could not figure out how to do that with OnyX.
>>
>> I would like to have a script for Macaroni to tell it to trash the
>> Safari Icon folder on a regular basis. Anyone have a script for
>> this? I need a name for the log file too. All this is kind of over
>> my head.
>>
>> Birgit
>
>
> ----------
> Check out the Mac OS X email list FAQ
> http://www.themacintoshguy.com/lists/X.html
>
> To unsubscribe, E-mail to: <X-Newbies-off at lists.themacintoshguy.com>
> To switch to the DIGEST mode, E-mail to
> <X-Newbies-digest at lists.themacintoshguy.com>
> Need help from a real person? Try.
> <X-Newbies-request at lists.themacintoshguy.com>
>
> ----------
> $14.99 Unlimited Nationwide Mac Dialup and Mac Web Hosting from your
> Mac ISP Serious Mac Internet Solutions From NineWire!
> http://macinternetaccess.com
>
> DVIator | Run Dual ADC displays on your G4 or just one on an older
> Mac! Dr. Bott | <http://www.drbott.com/prod/DVIator.html>
>
> Support | Support this list by clicking here before you buy!
> this List | http://www.themacintoshguy.com/support.html
>
> OS X News, Dr.Mac, Forums, Tutorials, Tips, Hints, FAQ?s -
> http://www.osxfaq.com
>
More information about the X-Newbies
mailing list