Created
November 14, 2014 17:47
-
-
Save bittner/c1195e3dffb477b0ff9d to your computer and use it in GitHub Desktop.
Apache Status Remote Querying
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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