help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process Regexp Problems


From: Brendan Strejcek
Subject: Re: Process Regexp Problems
Date: Tue, 13 Apr 2004 20:03:07 -0500
User-agent: Mutt/1.3.28i

Russell Adams wrote:

> 28856 ?        S      0:00 /usr/sbin/cron
>  1191 ?        S      0:01 /usr/bin/linux  [/usr/sbin/cron]
> 
> How can I specify to NOT match the one that begins with the linux
> prefix?

I would just write a really tight regex.

First, do:

    ps auxw | cat -vet

so you can see exactly what the ps listing will look like.

I suspect something like:

    "^root .*[0-9] /usr/sbin/cron$"

will work well.

-- Brendan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]