天天看点

linux的执行sh文件的权限问题

linux设置crontab定时任务scrapy crawl mySpider时,出现错误:

CROND[10166]: (root) MAIL (mailed 59 bytes of output but got status 0x004b#012)

原因之一:你执行sh文件的目录没有权限(没有权限执行sh文件)

linux的执行sh文件的权限问题

解决方案:

我的sh文件放在/srv/dieaseMap,到/srv/dieaseMap目录下执行chmod u+x *.sh语句使该目录获得运行sh文件的权限。

linux的执行sh文件的权限问题

然后就不会出现以上报错了。