daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest May 30th, 2015 220 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MAIN SH#
  2. #!/bin/bash
  3. #echo "$(date "+%Y.%m.%d %R") Power failed." > /home/sysadmin/logs/ups.log
  4. #nohup /home/sysadmin/scripting/usv/servers/Mail.sh &
  5. #nohup /home/sysadmin/scripting/usv/servers/server1.sh &
  6. #nohup /home/sysadmin/scripting/usv/servers/server2.sh &
  7.  
  8. #server1.sh#
  9. #!/bin/bash
  10. ssh usv@192.168.10.55 'sudo shutdown -h now'
  11.  
  12. #server2.sh#
  13. #!/bin/bash
  14. ssh usv@192.168.10.56 'sudo shutdown -h now'
RAW Paste Data
Top