Forum: Cfengine Help Subject: Re: Setting perms on home directory files Author: RIngersoll Link to topic: https://cfengine.com/forum/read.php?3,17127,17144#msg-17144
Nakarin-- Evidently the hang I'm experiencing is associated with the readstringarray function. If I specify a maximum number of entries to read of 21 or lower the bundle works fine. If I specify any number greater than 21 it loops after the "cf3 > Verifying the syntax of the inputs..." message as described above. Unfortunately it's going to be some time before I can upgrade cfengine. :-( Neal-- I tried but was not able to come up with a pattern for readstringarray that excludes lines I don't want. The following works to exclude lines I want: pcregrep "^((?!admin|civei|cmo|dba|dit|perfmgmt|cmisradm|root).)*$" /etc/passwd But when I use that same pattern with readstringarray I get mixed results in the array, including lines that should be excluded based on the above pattern. I think this would be the preferred approach to my problem if I could get it to work because it doesn't require the tmp file be created from /etc/passwd. Due to "mormal ordering" a previous temp file is used by readstringarray before the new one is created by the grep command. Thanks. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine