Mac 设置自动执行定时任务, 步骤:
1. 编写plist
2.将plist放入该目录下
~/Library/LaunchAgents
3.命令启动
添加: launchctl load /System/Library/LaunchAgents/com.test.plist 移除: launchctl unload /System/Library/LaunchAgents/com.test.plist 查看: launchctl list 立即执行任务:launchctl start com.aigo.launchctl.plist 停止执行任务:launchctl stop com.aigo.launchctl.plist
参考: