How to detect a process is active or not? (for example: httpd)
I used `ps -ef | grep httpd | grep -v grep | wc -l` (if the value is greater than 0, it's active), but got some problem in assigning the value to variable. Anyone has good suggestion to solve this? Thanks for the help in advance.
tienchihwang