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 ;-) -- 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