>Date: Tue, 28 Jun 2005 09:25:18 -0400
>From: Nick Holland <[EMAIL PROTECTED]>
>To: misc <[email protected]>
>Subject: Re: Limit access to msn to a couple of hours a day

...

>(note: grepping the output of "ps -ax" is a starting point...but
>remember: sometimes the you will pick up the grep line itself in ps...)

Quite.  For example:

bahamontes $ ps -ax|grep 'ntpd'
23336 ??  Is      0:00.11 ntpd: [priv] (ntpd)
10490 ??  I       0:10.36 ntpd: ntp engine (ntpd)
28841 p1  ?+      0:00.00 grep ntpd

so instead write:

bahamontes $ ps -ax|grep '[n]tpd'
23336 ??  Is      0:00.11 ntpd: [priv] (ntpd)
10490 ??  I       0:10.36 ntpd: ntp engine (ntpd)

Reply via email to