Python script is not running under cron, despite working when run manually

前端 未结 1 1604
太阳男子
太阳男子 2021-01-03 06:21

I know there have been plenty of questions about this, but I\'ve been trying things for a while with no luck. I have a simple python testscript that creates a folder with a

相关标签:
1条回答
  • 2021-01-03 06:36

    Use fully qualified path for all commands in crontab.

    0 */2 * * * /full/path/to/python /home/ec2-user/cronscripts/testscript.py
    

    Also, all fields are *? When do you expect this to be run? The above example would run every other hr.

    0 讨论(0)
提交回复
热议问题