I wasn't sure pgrep was always available on all your supported platforms.
Is it?


On Wed, Apr 3, 2013 at 4:16 PM, Raphaël Pinson <notifications@github.com>wrote:

> In lib/serverspec/commands/base.rb:
>
> > @@ -36,7 +36,7 @@ def check_running service
> >        end
> >
> >        def check_process process
> > -        "ps aux | grep -qw #{process}"
> > +        "ps aux | grep -w #{process} | grep -qv grep"
>
> Another way of achieving this is to replace the first letter of processby adding
> [] around it, doing grep -qw "[a]bc" instead of grep -qw "abc".
>
> Actually, wouldn't it be better to use pgrep here?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mizzy/serverspec/pull/33/files#r3646338>
> .
>