Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.