Mac OS X: Launchd执行程序的一个例子
最后更新于:2022-04-01 10:56:01
This is the plist file to run a program in /Library at 12:00pm.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ca.ab.cbe.ts.updates</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Application Support/Example/.packagerv2</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>12</integer>
</dict>
</dict>
</plist>