开发者

Graceful Shutdown Of Application

I want to create a Mac Leopard application that will monitor another application, running on the same computer, and "gracefully" shutdown the monitored application after it has been running for x number of hours. What language would you suggest I use t开发者_运维技巧o create the monitoring application?


Since this is a general question I'll just give a general answer:

If the monitored application can be started from the command line than any of the high level languages (Python, Ruby, etc) will be able to start the application and start a timer.

Shutting down the application depends on what you mean by "gracefully". If you just want to stop the application, you can issue a kill command, but to be able to shut it down "gracefully" depends on how much the application exposes itself. Can you use Applescript, or other scripting languages to ask it to shut down gracefully?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜