cron jobs not running in Catalina?

Discussion in 'macOS Catalina (10.15)' started by AdamL1313, Aug 10, 2019.

  1. AdamL1313 macrumors newbie

    Oct 25, 2009
    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?
  2. AdamL1313 thread starter macrumors newbie

    Oct 25, 2009
    For reference, the cron job I'm trying to run is:

    */5 * * * * /Users/me/Documents/
    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.
  3. PastaPrimav macrumors 6502a

    Nov 6, 2017
    Crons did not run for me through the first 4 betas, but they're working again in the 5th.
  4. AdamL1313 thread starter macrumors newbie

    Oct 25, 2009
    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.
  5. haralds macrumors 6502a


    Jan 3, 2014
    Silicon Valley, CA
    I would set up a folder in ~/Library for the sort of thing.

Share This Page

4 August 10, 2019