3 ms·
ps ax|grep -Ei '(apache|httpd)'|grep Ss|wc -l lsof|grep TCP|grep -Ei '(apache|httpd)|cut -f 1 -d ' '|sort|uniq|wc -l apache -S 2>&1|grep server|wc -l apache2
by cd34 16y ago
ps ax|grep -Ei '(apache|httpd)'|grep Ss|wc -l
lsof|grep TCP|grep -Ei '(apache|httpd)|cut -f 1 -d ' '|sort|uniq|wc -l
apache -S 2>&1|grep server|wc -l
apache2ctl -S 2>&1|grep server|wc -l
are processes/threads really servers? His question was a bit ambiguous. I wouldn't have accepted that job position either. :)
- brentoids 16y agoAmbiguous questions are great to ask candidates. It helps to filter out those that neither realize the ambiguity nor ask clarifying questions. Questioning before compliance is a valuable important trait.