script using tmutil command not working in cron job

I have a simple shell script that gives me status information about my disks, backups, etc.. It uses the

"tmutil listlocalsnapshots mountpoint" command. When I run this script at the terminal prompt it works as desired, but when I run it via a crob job all I get from the "tmutil listlocalsnapshots mountpoint" is the command's single header line "Snapshots for disk mountpoint:". The rest of the script works fine.


Any idea why this might be?





Mac mini, OS X 10.11

Posted on Jul 18, 2021 10:06 AM

Reply

Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

script using tmutil command not working in cron job

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.