Re: temporary files and subsequent cleanup
Re: temporary files and subsequent cleanup
- Subject: Re: temporary files and subsequent cleanup
- From: Alastair Houghton <email@hidden>
- Date: Fri, 26 Oct 2007 15:20:22 +0100
On 26 Oct 2007, at 15:11, Brian Stern wrote:
On Oct 26, 2007, at 7:50 AM, Chris Heimark wrote:
My question is this though. If my application fails, which I am
certain it will never do - hah ;-) - I will have some temp files
left over. Does Tiger+ have a daemon for temporary file removal
that will care of these files from NSTemporaryDirectory() rooted
temporary space here: /private/var/tmp/folders.501/temporaryitems/
and if so, when and how often does it run to take care of this?
There are three scripts
/private/etc/daily
/private/etc/weekly
/private/etc/monthly
[snip]
If the computer is sleeping or turned off, of course, the scripts
won't run.
You can view the log files generated by these scripts in the
Console utility application.
You can execute the scripts yourself by just typing their names in
the Terminal if you like.
You can also install anacron, which will make the scripts run at the
first available opportunity subsequent to the time they were supposed
to. There's a package for Tiger here:
<http://members.cox.net/18james/anacron-tiger.html>
and one for Panther here:
<http://alastairs-place.net/anacron.html>
It looked like launchd was going to start doing this itself, so I
don't know (yet) whether this is necessary for Leopard.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden