【发布时间】:2015-05-10 23:17:36
【问题描述】:
这个文件是用 bash 编写的。当我运行它时,我得到了这个错误:
./q: line 7: syntax error near unexpected token `done'
./q: line 7: `done '**strong text**
代码是:
nohup echo ELMAYET > /dev/null 2> /dev/null &&
if curl -m5 -s --insecure "$1/test/final" | grep "phpshell" > /dev/null;
then
echo "$1/test/final.php" | tee -a final.txt;
fi &
done
【问题讨论】:
-
done在那里做什么?它属于什么语句? -
另外 20 行呢?
-
这几乎不是 MCVE,但我猜你需要在
done之前删除& -
我做了,但这不起作用
-
你从哪里得到的代码?我刚刚在 Google 上搜索了“nohup echo ELMAYET”,结果只发现您在问这个问题。