ps command is used to see all processes # ps -ef
we need to combine ps and grep command,
# ps -ef | grep httpd
Hi,
I'm not sure how to preserve the options for ps, but you can use the "pgrep" command like this:
$ pgrep httpd
or, to get a full count:
$ pgrep httpd |wc -l
For more information about the httpd process, I like to use "httpd fullstatus" like this:
$ httpd fullstatus
or you can grep for the domain with the fullstatus:
$ httpd fullstatus |grep
I hope this helps a little bit.
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
ps command is used to see
Fri, 07/16/2010 - 15:27 — sridhar_pips command is used to see all processes # ps -ef
we need to combine ps and grep command,
# ps -ef | grep httpd
Hi, I'm not sure how to
Tue, 06/28/2011 - 05:09 — jrogersHi,
I'm not sure how to preserve the options for ps, but you can use the "pgrep" command like this:
$ pgrep httpd
or, to get a full count:
$ pgrep httpd |wc -l
For more information about the httpd process, I like to use "httpd fullstatus" like this:
$ httpd fullstatus
or you can grep for the domain with the fullstatus:
$ httpd fullstatus |grep
I hope this helps a little bit.