0

根据 openvz 的文档,我正在尝试在所有 vps 上执行 uptime 命令,但出现语法错误

# echo "vps $i"; vzctl exec $i uptime; done
-bash: syntax error near unexpected token `done'

任何想法 ?

4

1 回答 1

0
for i in `vzlist –o veid -H`; do echo "vps $i"; vzctl exec $i uptime; done
于 2014-07-11T09:28:39.227 回答