Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MAIN SH#
- #!/bin/bash
- #echo "$(date "+%Y.%m.%d %R") Power failed." > /home/sysadmin/logs/ups.log
- #nohup /home/sysadmin/scripting/usv/servers/Mail.sh &
- #nohup /home/sysadmin/scripting/usv/servers/server1.sh &
- #nohup /home/sysadmin/scripting/usv/servers/server2.sh &
- #server1.sh#
- #!/bin/bash
- ssh [email protected] 'sudo shutdown -h now'
- #server2.sh#
- #!/bin/bash
- ssh [email protected] 'sudo shutdown -h now'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement