Answer the question
In order to leave comments, you need to log in
How to hang a python script on cron?
There is a python script. The file is executable.
#!/usr/bin/env python3
import os, re, sqlite3, requests
...
SHELL=/bin/bash
MAILTO=****@****
* * * * * /home/alex/projects/script/script.py
Answer the question
In order to leave comments, you need to log in
Add path to cron
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question