更新时间:2023-12-05 09:31:16
这是cron的问题。
首先在你的python脚本的顶部添加一个SHEBANG行。
It is a question on cron. First is add a SHEBANG line on top of your python script.
#!/usr/bin/env python
使用 chmod + x
并执行crontab -e并添加 0 0 * / 2 * * /path/to/your/pythonscript.py$c $ c>
And do a crontab -e and add 0 0 */2 * * /path/to/your/pythonscript.py