Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据 openvz 的文档,我正在尝试在所有 vps 上执行 uptime 命令,但出现语法错误
# echo "vps $i"; vzctl exec $i uptime; done -bash: syntax error near unexpected token `done'
任何想法 ?
for i in `vzlist –o veid -H`; do echo "vps $i"; vzctl exec $i uptime; done