Forum: CFEngine Help Subject: Re: CFEngine Help: Re: Normal ordering, files and commands Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,27142,27148#msg-27148
Aleksey, you say: You *could* capture output of "ls -l" using execresult() function, and then use regcmp() function to compare it to the correct pattern for the device in question. Looking longer term, wouldn't the information-gathering aspect be better if cfengine were to offer a 'stat' function, like the UNIX system call? See also bug 1280 Built-in functions in the old bug-tracking system (different requested functions, but same underlying principle of cleaning gathering information). _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine