开发者

running a python script with cron

It 开发者_C百科might be very simple question, but how could I run a python script on my fedora dist every 2 days?

Thanks

Antonis


It is a question on cron. First is add a SHEBANG line on top of your python script.

#!/usr/bin/env python

Make your script executable with chmod +x

And do a crontab -e and add 0 0 */2 * * /path/to/your/pythonscript.py

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜