Skip to content

Instantly share code, notes, and snippets.

@taidos
Forked from csdy/watch.sh
Created January 7, 2022 07:12
Show Gist options
  • Save taidos/27a3c946705621db817d9a29aea8f029 to your computer and use it in GitHub Desktop.
Save taidos/27a3c946705621db817d9a29aea8f029 to your computer and use it in GitHub Desktop.
Show HTTP connections in cPanel
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | tail -n +26 | grep -v 'OPTIONS' | grep -v '::1' | grep -v 'whm-server-status' | grep -v 'cptemplate.hostek.com' | grep -v 'hostname --ip-address' | grep -v 'NULL'"
# Generic
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | tail -n +26"
# WordPress/Joomla/vBulletin
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | grep -e "wp-login.php" -e "administrator/index.php" -e "*vbulletin""
# Wordpress XMLRPC
watch -n 2 "/usr/bin/lynx -dump -width 500 http://127.0.0.1/whm-server-status | grep -e "xmlrpc.php""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment