Hello all, I took the following from the documentation hoping to use it for a task that I would like to implement:
"dim_array" int => readstringarray("define_users","/etc/passwd"," #[^\n]* ",":",10,4000); Tried it and it worked well i.e. it read 10 entries of the passwd files. So I went ahead with trying to read the whole file but helas every attempt I did the agent froze. By froze I mean the passwd file is of the following size: # /wc /etc/passwd 42 74 2044 /etc/passwd As soon as I specify a value above 21(half of 42 nice coincidence) for the number of entries it freezes. In -d1 output I get the following: : : Adding scope data control_agent Adding scope data this Adding scope data match SCOPE Object match already exists > Verifying the syntax of the inputs... Unappending > Verifying the syntax of the inputs... And stays there forever!!!! As a side question how does one specifies all of the entries of a file? Marco
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine