Search code examples
pythonunixcronzsh

Crontab Headaches when trying Python


I have successfully run a crontab but when I introduce a python script, nothing happens. I have verified that my python file works when run directly from the shell.

crontab is:

* * * * * /Users/myname/myzsh.zsh

where myzsh.zsh is:

#!/bin/zsh
/Users/mypath_to/python /Users/myname/testscript.py

Nothing happens


Solution

  • Turns out cron itself had no permissions. I dragged and dropped it into the security section of preferences and voila!