The return value is cached.
Description: Return whether a process matches the given regular expression
This function searches for the given regular expression in the process
.*sherlock.* to find all the processes that match
.*\bsherlock\b.* to exclude partial matches like
\b matches a word boundary).
regex: regular expression, in the range:
The process table is usually obtained with something like
user,pid,ppid,pgid,%cpu,%mem,vsize,ni,rss,stat,nlwp,stime,time,args, and the
COMMAND field (
args) is used to match against. However the exact
data used may change per platform and per CFEngine release.
classes: # the class "holmes" will be set if a process line contains the word "sherlock" "holmes" expression => processexists(".*sherlock.*");
History: Introduced in CFEngine 3.9