Mac 设置自动执行定时任务, 步骤:

1. 编写plist

Mac定时执行脚本_服务launchctl 

 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

 

 

 

 

参考:

Mac创建定时任务

Mac中的定时任务利器:launchctl

 

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2022-01-02
  • 2021-11-05
  • 2021-09-25
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-02-21
  • 2022-02-03
  • 2021-11-11
  • 2021-11-21
  • 2021-06-27
相关资源
相似解决方案