开发者

Mac OS X cron log / tracking

开发者 https://www.devze.com 2023-02-20 09:14 出处:网络
What is the best way to determine if a cron job has run? Is there a log? What techniques do peo开发者_运维知识库ple use?With macos Monterey it seems you should use the following shell command

What is the best way to determine if a cron job has run? Is there a log? What techniques do peo开发者_运维知识库ple use?


With macos Monterey it seems you should use the following shell command

log show --process cron

you can add --info and/or --debug if required


I just redirected the output of the cron script >> to a file and that seemed to work well enough.


tail -f /var/log/syslog | grep CRON

It can happen that "syslog" is not located in "/var/log/", in this case just run the following line to get its location:

whereis syslog
0

精彩评论

暂无评论...
验证码 换一张
取 消