| www.delorie.com/gnu/docs/cfengine/cfengine-Reference_5.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Cfengine provides a number of in-built functions for evaluating classes,
based on file tests. Using these internal functions is quicker than
calling the shell test function. The time functions place their
arguments in chronological order.
IsNewerThan(f1,f2)
AccessedBefore(f1,f2)
ChangedBefore(f1,f2)
FileExists(file)
IPRange(address-range)
IsDefined(command)
IsDefines(var), not IsDefined(${var})
IsDir(f)
IsLink(f)
IsPlain(f)
ReturnsZero(command)
Strcmp(s1,s2)
For example:
classes: access_to_dir = ( ReturnsZero(/bin/cd /mydir) ) compare = ( ChangedBefore(/etc/passwd_master,/etc/passwd) ) isplain = ( IsPlain(/tmp/import) ) inrange = ( IPRange(128.39.89.10-15) ) CIDR = ( IPRange(128.39.89.10/24) ) |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |