Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AdamL1313

macrumors newbie
Original poster
Oct 25, 2009
8
0
I have a Python script executed every 5 minutes as a cron job. I can't get it to work in Catalina, though the syntax is unchanged from what used to work in Mojave. Running the command manually works just fine. Is there some difference in zsh compared to bash?
 

AdamL1313

macrumors newbie
Original poster
Oct 25, 2009
8
0
For reference, the cron job I'm trying to run is:

Code:
*/5 * * * * /Users/me/Documents/myscript.py

It shows up just fine when I run crontab -l. The script is executable and works when run directly. I'm also not having any luck getting it to run as a launchctl daemon.
 

AdamL1313

macrumors newbie
Original poster
Oct 25, 2009
8
0
I actually just got it figured out: I read the release notes for Beta 5, which says "Specifying privacy-sensitive files and folders in a launchd property list might not work as expected and prevent the service from running." Not quite sure what "privacy-sensitive" files entails but I moved the script to the root of my Home folder instead of the Documents folder and it's working now. My Documents folder is synced with iCloud, so maybe it doesn't like that, or maybe it was getting hung up by the new Catalina restrictions on which apps can access what files.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.