Answer the question
In order to leave comments, you need to log in
How to run a python script via cron?
Good day to all.
Wrote a small python script and made it run with a command from the console:
/var/prog/runner.py I
write to cron:
* 5 * * * /var/prog/runner.py
No startup occurs. Nothing interesting in the logs either:
Apr 26 22:20:01 248709 CRON[18658]: (root) CMD (/var/prog/runner.py)
Apr 26 22:20:03 248709 CRON[18657]: (CRON) info (No MTA installed, discarding output)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question