新手问题! :)
我试图每分钟运行带有cron的简单python应用程序:代码可以正常运行,这是一个简单的hello world示例:)
/etc# python greeting.py
你好!
这是crontab:
* * * * * python /etc/greeting.py
然后我用重新启动cron
/etc/init.d/cron restart
,但没有任何反应。
谢谢
答案 0 :(得分:0)
检查系统中安装python
的目录:
mayankp@mayank:~/which python
/home/mayankp/bin/python
然后,在crontab
中传递整个路径。
希望这会有所帮助。