Django/Python How should this cronjob be executed
问题 I created a simple python script that allows me to update a chosen animal to be displayed on the sites frontpage. when I am in my ssh, I run it like this. cd /www/site/mydirectory python perform_daily_action.py How do I run this in my crontab as a cronjob. I tried to do 30 09 * * * cd /www/site/mydirectory;python perform_daily_action.py Although this does not seem to work. Suggestions? 回答1: Try use this instead 30 09 * * * python /www/site/mydirectory/perform_daily_action.py 回答2: The other