【发布时间】:2016-06-06 08:41:43
【问题描述】:
运行以下命令时,
* * * * * /home/path1/path2/myScript.sh >>/home/path1/path2/Logs/output.txt 2>&1
我收到以下错误
bash: apache-solr-1.4.2-dev.zip: command not found
// if we delete this folder/zip from its location it goes to the below error.
// It is just taking some folder names and throwing errors
bash: apache-solr-1.4.2.zip: command not found
bash: apache-solr-1.4.zip: command not found
bash: someFolder.zip: command not found
bash: someFolder2.zip: command not found
bash: someFolder3.zip: command not found
myScript.sh 包含:
echo "this is my script"
我无法理解 Solr 和 Cron 作业之间的关系。请帮帮我。
【问题讨论】:
-
错误来自
myScript.sh,而不是来自cron。检查您的myScript.sh。 -
我已经用 myScript.sh 编辑了这个问题,我能知道如何解决这个问题吗? @sat
-
错误消息来自 shell - 它们是在您将用于 cron 配置文件的行粘贴到终端时生成的。