• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: temporary files and subsequent cleanup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >temporary files and subsequent cleanup (From: Chris Heimark <email@hidden>)
 >Re: temporary files and subsequent cleanup (From: Brian Stern <email@hidden>)

  • Prev by Date: Re: Bindings with an NSMatrix of NSButtons
  • Next by Date: Re: [Moderator] Leopard Discussion Embargo Lifted at 6PM Pacific Time on Friday
  • Previous by thread: Re: temporary files and subsequent cleanup
  • Next by thread: Re: temporary files and subsequent cleanup
  • Index(es):
    • Date
    • Thread