Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- a=0
- now=$(date +"%T")
- echo [$now] Start
- while :
- do
- status="$(./ts3server_startscript.sh status)
- if [ "$status" -ne "Server is running" ]
- then
- echo
- echo
- echo
- echo ============================================
- echo
- let "a += 1"
- echo -e Check number: "\033[36;1m$a\033[0m"
- echo
- echo
- echo
- now=$(date +"%T")
- echo -e "\e[33m[$now]" Status "\e[31mOffline"
- echo
- ./ts3server_startscript.sh
- echo
- now=$(date +"%T")
- echo -e "\e[33m[$now]" Server "\e[32mStarted"
- pause 60
- echo
- echo ============================================
- else
- echo ============================================
- echo
- let "a += 1"
- echo -e Check number: "\033[36;1m$a\033[0m"
- echo
- echo
- echo
- now=$(date +"%T")
- echo -e "\e[33m[$now]" Status "\e[34mmOnline"
- echo
- echo ============================================
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement