Created
October 3, 2017 23:27
-
-
Save dannygsmith/c8ce8b8f2831cc371929078ac0576f68 to your computer and use it in GitHub Desktop.
Script to list what web stacks are running
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
#!/usr/bin/env bash | |
#styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' | |
VP_WHITE='\033[01;37m' | |
VP_BOLD='\033[1m' | |
VP_UNDERLINE='\033[4m' | |
clear | |
echo " " | |
echo -e "${VP_GREEN}${VP_BOLD}user brew services list to see if any services are running${VP_NONE}" | |
brew services list | |
echo " " | |
echo -e "${VP_GREEN}${VP_BOLD}use ps to see if any process's are running${VP_NONE}" | |
ps aux | grep DesktopServer.app | grep -v grep| head -1 | |
ps aux | grep "Local by Flywheel.app" | grep -v grep| head -1 | |
ps aux | grep -i "xamp" | grep -v grep| head -1 | |
ps aux | grep -i "mamp" | grep -v grep| head -1 | |
ps aux | grep dnsmasq | grep -v grep| head -1 | |
ps aux | grep nginx | grep -v grep| head -1 | |
ps aux | grep php | grep -v grep| head -1 | |
ps aux | grep mysql | grep -v grep| head -1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment