Mac OS X: Launchd执行程序的一个例子

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>


原文链接: http://blog.csdn.net/afatgoat/article/details/5759165

你可能感兴趣的:(Mac OS X: Launchd执行程序的一个例子)