On Mon, May 17, 2010 at 4:43 PM, Seva Gluschenko
<seva.glusche...@gmail.com>wrote:

> I still get no clue why and how this construction is better than
> process_select internal feature of Cfengine3 itself )
>

process_select does not work very well on Solaris, as it will see across
zones. You need Nova or above for this to do the right thing (I am using the
community edition). If I was using Nova, I probably would use
process_select.



>
> 2010/5/17 Michael Potter <mega...@gmail.com>:
> >
> >
> > On Mon, May 17, 2010 at 4:26 PM, Daniel Dehennin
> > <daniel.dehen...@baby-gnu.org> wrote:
> >>
> >> mega...@gmail.com writes:
> >>
> >> > It turns out a simple "grep -v grep" at the end of the shell command
> >> > did the trick:
> >> >
> >> > "myarray[$(mykeys)]" string => execresult("/usr/bin/ps -f | grep
> >> > $(mylist[$(mykeys)]) | grep -v grep","useshell");
> >>
> >> That's why pgrep exists ;-)
> >
> > I might be able to ring it with pgrep, however as written the bundle I
> > currently have (not in this contrived example) uses regcmp to do further
> > comparisons against the full command line, which I dont get with pgrep. I
> > might revisit that idea though...thanks =)
> >
> >>
> >> --
> >> Daniel Dehennin
> >> Récupérer ma clef GPG:
> >> gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
> >> _______________________________________________
> >> Help-cfengine mailing list
> >> Help-cfengine@cfengine.org
> >> https://cfengine.org/mailman/listinfo/help-cfengine
> >
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@cfengine.org
> > https://cfengine.org/mailman/listinfo/help-cfengine
> >
> >
>
>
>
> --
> SY, Seva Gluschenko.
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to