Advertisement
Guest User

Untitled

a guest
May 30th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  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 [email protected] 'sudo shutdown -h now'
  11.  
  12. #server2.sh#
  13. #!/bin/bash
  14. ssh [email protected] 'sudo shutdown -h now'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement