Mac 设置自动执行定时任务, 步骤:spa
1. 编写plist.net
2.将plist放入该目录下code
~/Library/LaunchAgents
3.命令启动blog
添加: 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
参考:seo