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