Skip to content

Instantly share code, notes, and snippets.

@enriquemanuel
Created July 8, 2013 19:43
Show Gist options
  • Save enriquemanuel/5951885 to your computer and use it in GitHub Desktop.
Save enriquemanuel/5951885 to your computer and use it in GitHub Desktop.
Get apache version from the processes running with one line of comand
# 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