我尝试过以下命令,但始终无法在 crontab 中执行,有什么想法吗?
cd/usr/store/home/build/reportdeployment/Automate_CallCount_By_Region_by_Application_Report &&/usr/bin/python doReport.py -p -c Automate_CallCount_By_Region_by_Application_Report.cfg
最佳答案
如果你在命令行上执行这个(作为 cron 用户)会发生什么? 一般来说,我建议将其放入一个简单的 shell 脚本(也可以处理日志记录等)并直接调用该脚本。
关于linux - Python 不接受 crontab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26420174/