Good evening. Set up a task in /etc/cron.d/upload:
5 4 * * * root python /var/www/webapps/mysite.ru/upload.py > /dev/null 2>&1 5 5 * * * root python /var/www/webapps/mysite.biz/upload.py > /dev/null 2>&1 Tell me, please, why he doesn’t want to work (there’s an empty line at the end of the file, something like it should have been written somewhere). OS debian, reboot the machine. In the logs:
May 8 04:54:31 hs-python anacron[526]: Anacron 2.3 started on 2016-05-08 May 8 04:54:31 hs-python anacron[526]: Will run job `cron.daily' in 5 min. May 8 04:54:31 hs-python anacron[526]: Will run job `cron.weekly' in 10 min. May 8 04:54:31 hs-python anacron[526]: Will run job `cron.monthly' in 15 min. May 8 04:54:31 hs-python anacron[526]: Jobs will be executed sequentially May 8 04:59:31 hs-python anacron[526]: Job `cron.daily' started May 8 04:59:38 hs-python anacron[526]: Job `cron.daily' terminated May 8 05:04:31 hs-python anacron[526]: Job `cron.weekly' started May 8 05:04:31 hs-python anacron[526]: Job `cron.weekly' terminated May 8 05:09:31 hs-python anacron[526]: Job `cron.monthly' started May 8 05:09:31 hs-python anacron[526]: Job `cron.monthly' terminated May 8 05:09:31 hs-python anacron[526]: Normal exit (3 jobs run)
touch /tmp/somefilesomething test (liketouch /tmp/somefile) running? - aleksandr barakin