Django/Python How should this cronjob be executed -


I have created a simple dragon script which allows me to update the selected animal in front of the sites.

When I am in my SSH, I run it like this.

  cd / www / site / mydirectory python perform_daily_action.py   

How do I run it as a cronboze in my cron

I tried to

  30 09 * * * cd / www / site / mydirectory; Python perform_daily_action.py   

However this does not seem to work.

Suggestions?

Try using it instead

  30 09 * * * Python /www/site/mydirectory/perform_daily_action.py    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -