my cron command doesn't work!

I have manually added a command to my crontab file. Pretty simple. Something like "0 10 * * * mv /Users/me/Desktop/test /Users/me/Desktop/test2". Simply doesn't work. Other commands in my crontab file work fine, which suggests that cron IS actually executing. I HAVE given the cron app "Full Disk Access" in Security & Privacy. I'm using Monterey. Not sure where the cron log is, so I haven't pieced together what is happening. This is confusing. Advice?

iMac, OS X 10.11

Posted on Sep 11, 2023 08:07 AM

Reply
7 replies

Sep 12, 2023 07:54 AM in response to Dannymac22

Hi Dannymac22,


It sounds like you're having an issue with a command for a third-party app. You may need to contact the app developer to view or find log information to help execute. To further isolate you can test the command in a new user account. Add a user or group on Mac - Apple Support


However, you can also double check your permissions with the guide page here: Change permissions for files, folders, or disks on Mac - Apple Support



Best.


Sep 13, 2023 07:20 AM in response to OrigamiFan1

Here's another piece of evidence. When I run cron manually, I get


mycomputer$ /usr/sbin/cron ; exit;


cron: can't open or create /var/run/cron.pid: Permission

denied


logout


Um, what's that telling me? Why is that permission being denied? Now, as I said, I have other stuff running in my crontab file, and it works perfectly. So this error message must pertain to just one line out of many in my crontab file.


 

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.

my cron command doesn't work!

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