- 论坛徽章:
- 33
|
哪有这么取的.- # ps -ef | grep httpd
- root 4548 1 0 May05 ? 00:00:21 /usr/sbin/httpd
- root 16258 11256 0 12:00 pts/3 00:00:00 grep httpd
- apache 25420 4548 0 May11 ? 00:00:08 /usr/sbin/httpd
- apache 25422 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25423 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25424 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25425 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25426 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25427 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25428 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25429 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- # ps -ef | grep [h]ttpd
- root 4548 1 0 May05 ? 00:00:21 /usr/sbin/httpd
- apache 25420 4548 0 May11 ? 00:00:08 /usr/sbin/httpd
- apache 25422 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25423 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25424 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25425 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25426 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25427 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25428 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
- apache 25429 4548 0 May11 ? 00:00:00 /usr/sbin/httpd
复制代码 上面是正确的取法.
你那个bash加上之后, 多了一个 子shell, 而这个shell的名字很可能跟你的keepa是匹配的. 所以, 才会多出两个. 改个名字, 再用上面我的试试. |
|