Mac定时执行脚本_服务launchctl

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

Mac执行定时任务之Launchctl

Mac建立定时任务

Mac中的定时任务利器:launchctl

相关文章
相关标签/搜索