为 MAC OSX 一起分发启动代理和应用程序
我正在尝试解决以下问题。
该应用程序旨在为通过 USB 连接的手机提供定制备份。当手机连接到系统时,应启动该应用程序。
我已经编写了如下组件。 1. 一个守护程序,用于检测特定 USB 何时连接,然后启动应用程序。 2. 执行备份的应用程序。
我需要将这两件事绑定在一起。我浏览了启动代理的文档。但是,还有更多关于在登录/注销或系统启动/关闭期间启动主备份应用程序的信息。
你能帮我解决这个问题吗?
我真的很感谢你的帮助。
谢谢, 基肖尔
I am trying to solve the following problem.
The application is aimed to provide customized backup for a phone connected through the USB. When the phone is connected to the system, the application should be launched.
I already wrote the components as follows.
1. A Daemon that detects when the specific USB is connected and then launches the application.
2. The Application that performs the backup.
I need to bind these two things together. I went through the documentation for Launch Agents. But there are more about making the main backup application launch during login/logout or system startup/shutdown.
Can you please help me in solving this?
I really appreciate your help.
Thanks,
Kishore
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将守护程序应用程序的 launchd plist 添加到 /Library/LaunchDaemons 目录
有关执行此操作的更多详细信息,请参阅:
http://developer.apple.com/ Library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html
或 Daemons 部分
http://developer.apple.com/library/mac/#technotes /tn2083/_index.html
Add a launchd plist for your Daemon application to the /Library/LaunchDaemons directory
For more details on doing this refer:
http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html
or Daemons section of
http://developer.apple.com/library/mac/#technotes/tn2083/_index.html