Skip to content

Instantly share code, notes, and snippets.

@bittner
Created November 14, 2014 17:47
Show Gist options
  • Save bittner/c1195e3dffb477b0ff9d to your computer and use it in GitHub Desktop.
Save bittner/c1195e3dffb477b0ff9d to your computer and use it in GitHub Desktop.
Apache Status Remote Querying
#!/bin/bash
# Show the Apache status diagram (free and occupied connections). Ctrl+C to exit.
# usage: apache-status servername
apache-status() {
while true; do
ssh -t $1 "TERM=xterm-color && clear && apache2ctl status && sleep 2"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment