mulog.sh 581 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. red='\e[1;31m'
  3. green='\e[0;32m'
  4. NC='\e[0m'
  5. MYIP=$(wget -qO- icanhazip.com);
  6. echo "Checking VPS"
  7. clear
  8. echo " "
  9. echo "===========================================";
  10. echo " ";
  11. if [ -e "/root/log-limit.txt" ]; then
  12. echo "User Who Violate The Maximum Limit";
  13. echo "Time - Username - Number of Multilogin"
  14. echo "-------------------------------------";
  15. cat /root/log-limit.txt
  16. else
  17. echo " No user has committed a violation"
  18. echo " "
  19. echo " or"
  20. echo " "
  21. echo " The user-limit script not been executed."
  22. fi
  23. echo " ";
  24. echo "===========================================";
  25. echo " ";