linux設置crontab定時任務scrapy crawl mySpider時,出現錯誤:
CROND[10166]: (root) MAIL (mailed 59 bytes of output but got status 0x004b#012)
原因之一:你執行sh文件的目錄沒有權限(沒有權限執行sh文件)
解決方案:
我的sh文件放在/srv/dieaseMap,到/srv/dieaseMap目錄下執行chmod u+x *.sh語句使該目錄獲得運行sh文件的權限。
然後就不會出現以上報錯了。