Messages in this thread |  | | From | (John Henders) | Subject | Re: Gack, this shouldn't happen under a stable OS I think | Date | 24 Sep 1996 16:59:45 -0700 |
| |
In <dy8f2e.gp4@bigred.inka.de> Olaf Titz <olaf@bigred.inka.de> writes:
>If you really need grep on a ps listing, e.g. to find processes of a >certain program, the standard way to do this is grepping out the grep: >ps -aux | grep "httpd" | grep -v grep
A more elegant way is to use something like
ps -aux | grep [h]ttpd
This saves starting an extra process.
-- Artificial Intelligence stands no chance against Natural Stupidity. GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*
|  |