I still get no clue why and how this construction is better than process_select internal feature of Cfengine3 itself )
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