Comece Cronjob
#Red Hat / CentOs:
service crond restart
#or
/etc/init.d/crond restart
#Ubuntu:
sudo service cron restart
#or
sudo /etc/init.d/cron restart
adens
#Red Hat / CentOs:
service crond restart
#or
/etc/init.d/crond restart
#Ubuntu:
sudo service cron restart
#or
sudo /etc/init.d/cron restart
add cronjob
* * * * * /usr/bin/env > /home/username/tmp/cron-env
vi run-as-cron:
#!/bin/bash
/usr/bin/env -i $(cat /home/username/tmp/cron-env) "$@"
then run:
run-as-cron /the/problematic/script --with arguments --and parameters
python manage.py crontab show