Forum: Cfengine Help Subject: Re: Parent process selection Author: matter Link to topic: https://cfengine.com/forum/read.php?3,19311,19495#msg-19495
I went back and reread the manual about anchored and unanchored regular expressions. Also, reread the section on command for process_select compound body: This expression should match the entire COMMAND field of the process table (not just a fragment). This field is usually the last field on the line and thus starts with the first non-space character and ends with the end of line. So, in this case cfengine is performing as advertised using an anchored regular expression with command for the process_select compound body. AIX is adding a space at the end of each line for ps auxw (AIX ps command from classes.c), so back to the original issue. I would hate to have to mention this, but it might be time to abstract the process table beyond using "ps". Even that would be fraught with platform specifics. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine