Guest User

Untitled

a guest
Jan 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. for host in $(< inputfile.txt );
  2. do
  3.  
  4. ssh $host shutdown -r now
  5.  
  6. done
  7.  
  8. xargs -n1 -I{} echo ssh {} shutdown -r now < inputfile.txt
Add Comment
Please, Sign In to add comment