Created
July 8, 2013 19:43
-
-
Save enriquemanuel/5951885 to your computer and use it in GitHub Desktop.
Get apache version from the processes running with one line of comand
This file contains 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
# get the entire verbose | |
ps -ef |grep httpd| grep " 1 " |awk '{system ( $8 " -V")}' | |
#get the minimal verbose | |
ps -ef |grep httpd| grep " 1 " |awk '{system ( $8 " -v")}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment