Shell脚本同时运行多个循环
感谢您的帮助!用另一种语言做这件事容易吗 问题出在您的第二个Shell脚本同时运行多个循环,shell,loops,Shell,Loops,感谢您的帮助!用另一种语言做这件事容易吗 问题出在您的第二个while-循环中:您没有do,因此您永远不会关闭条件块并启动身体块 也就是说,改变这一点: /home/yves/.fluxbox/bar.sh: line 27: syntax error near unexpected token `done' /home/yves/.fluxbox/bar.sh: line 27: `done' 为此: while true echo "\r\f0 $(Sound)\ur" done
while
-循环中:您没有do
,因此您永远不会关闭条件块并启动身体块
也就是说,改变这一点:
/home/yves/.fluxbox/bar.sh: line 27: syntax error near unexpected token `done'
/home/yves/.fluxbox/bar.sh: line 27: `done'
为此:
while true
echo "\r\f0 $(Sound)\ur"
done
@用户3058584,如果这回答了您的问题,您应该将其标记为已接受:
while true
echo "\r\f0 $(Sound)\ur"
done
while true ; do
echo "\r\f0 $(Sound)\ur"
done