execute statement in match clause

Evan Hunt Evan_Hunt at isc.org
Wed Jul 2 16:15:33 UTC 2008


> After the match if, it expects only a boolean expression, where execute
> is an action expression. Is there a way to check the result of an
> external command in a boolean expression?

Nope.  IIRC, one of the 3.1.0 alphas had a version of the code
in which execute() was boolean, but that meant you had to use
expr(execute("blah")) to run anything.  Also, it wasn't obvious
what boolean value should be returned: true if execution was
successful, or true if return code is zero?  So we punted.

You're wecome to send this to dhcp-suggest though.

-- 
Evan Hunt -- evan_hunt at isc.org
Internet Systems Consortium, Inc.


More information about the dhcp-users mailing list