python - Unable to automate crontab -
i have django project utilizes function notify_about_changes send email users history of objects last week in table format. works fine when happens manually through
$python manage.py shell
to automate job looked django-kronos , configuring crontab below:-
$sudo crontab -e *1 * * * * pathto/venv/python3.4 pathto/manage.py notify_about_changes $sudo cron restart
problem:- crontab doesnot work raising issues reponse failed ipaddress.
it might typo crontab looks has errant initial asterisk. should be:
1 * * * * pathto/venv/python3.4 pathto/manage.py notify_about_changes
that run script @ 1 minute past every hour, not want weekly task. instead might want try:
0 0 * * 0 pathto/venv/python3.4 pathto/manage.py notify_about_changes
which run job every sunday @ midnight.
Comments
Post a Comment