我正在制作一个已启动的 plist 以在 45 天后打开某些应用程序,但是我被困在 Day 并想知道为什么不再支持 cron。还想知道是否可以通过卸载和加载 .plist 文件来重新启动“倒计时”以打开应用程序?提前感谢您的回答。
问问题
130 次
1 回答
0
Use StartCalendarInterval
in launchd plist file.
StartCalendarInterval This optional key causes the job to be started every calendar interval as specified. Missing arguments are considered to be wildcard. The semantics are much like crontab(5). Unlike cron which skips job invocations when the computer is asleep, launchd will start the job the next time the computer wakes up. If multiple intervals transpire before the computer is woken, those events will be coalesced into one event upon wake from sleep.
于 2013-10-21T12:26:43.623 回答