开发者

Mac : Run Foundation Tool app as cronjob?

This may not be completely开发者_开发问答 programming related ...

In Xcode I wrote a little Foundation Tool application for maintenance. Copy files from A to B , delete logs and so on. Now I want to run the application in background once a day or once an hour. How do I set this up?

Can it be done with a Foundation Tool application or is there another Xcode project type for tasks like this?


Assuming the "Foundation Tool application" is a command-line application, then you should be able to run it from cron just fine.

Another way to run it (if you want to be consistent with the OS X built-in daily maintenance scripts) would be to run it from a script in /etc/periodic/daily (look at the existing scripts there for examples)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜