0

as per the document of openvz, I am trying to execute uptime command across all vps, but I am getting syntax error

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

any idea ?

tobias_k
  • 81,265
  • 12
  • 120
  • 179
Nipon Bharali
  • 1
  • 1
  • 1
  • 3

1 Answers1

0
for i in `vzlist –o veid -H`; do echo "vps $i"; vzctl exec $i uptime; done
tobias_k
  • 81,265
  • 12
  • 120
  • 179
avagin
  • 76
  • 3