Fri*_*ons 2 cron shell-script macos
我创建了一个每 60 秒运行一次的 cronjob,这对我来说不够频繁。这是一个简单的命令:wget localhost
如何在我的 mac 上每 30、16 秒运行一次这个 commenad?
改为使用launchd运行您的命令。使用属性列表文件~/Library/LaunchAgents/
和/System/Library/LaunchAgents/
灵感。developer.apple.com 上的文档。
要指定例如 30 秒的启动间隔,请使用以下命令:
<key>StartInterval</key>
<integer>30</integer>
Run Code Online (Sandbox Code Playgroud)