Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you restart multiple mac computers that are on the same network with terminal? I know the ssh command to login to one computer but I want to be able to send a reboot command to multiple computers at the same time from a server machine. I would like to create a applescript and then just run it from the server. Thanks!

share|improve this question

You can write a for loop that loops through a list of your Mac's IP addresses and sends this command to each IP for each item in the list.

ssh $ip "/sbin/shutdown -r now"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.