Forum: CFEngine Help
Subject: Re: memory exhausted error
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,26349,26373#msg-26373

I have a similar problem with large password files.  If there are more than 
around 900 users in the file, reading the file in and splitting on colons blows 
things up.  I work around this by counting the lines in the file using 
countlinesmatching with a ".*" and then setting a class if the size of the file 
is within the range which doesn't break things.  But that only works because I 
don't absolutely *have* to do the processing which comes from the file. :)

I'm still holding my breath for the rest of the getent functions (getuserhome!) 
to be implemented to solve my problem... ;)

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to