daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Oct 15th, 2012 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # SSH into each node and trigger restart
  4.  
  5. for n in `cat /srv/tftp/scripts/cluster-list.cfg`; do
  6.  
  7.         echo -n "$n - Sending resart signal ... "
  8.         ssh user@$n "sudo -u user /bin/bash" "echo b > /proc/sysrq-trigger"
  9.         echo "done."
  10.  
  11. done
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top