Mac OS Monterey 作业脚本在 cron 中的某些命令不起作用

Mac OS Monterey 作业脚本在 cron 中的某些命令不起作用

/usr/local/bin/bkpthunderbird.sh 我在“如果我在终端中运行就可以了”中创建了脚本备份sh bkpthunderbird.sh!但是,如果我在 crontab 中运行

05 12 * * * /usr/local/bin/bkpthunderbird.sh

该作业运行,但无法识别检查实时设备的基本命令,例如“ping”或“umount /Volume/destination”或“diskutil unmount /Volumes/destination”。我将 Access Full Disk 提供给 cron、smbd 在 Mac OS Big Sur、Catalina 中...我的 crontab 中的脚本工作正常

有人知道为什么会发生这种情况吗?

相关内容