the external command is going to execute in the default shell on the target system, so whatever that shell can do for math will work. so probably something like:
/tmp/Expr_test.sh ??port.starting_port?? $((??port.starting_port??+1))
should work, depending on the shell.
Yes, it works.
Can I do this to a property class level?
For example, I define a first custom property class with an integer instance sets to 1234. I'd like to define a second custom property class with an instance sets to first one + 1 so I obtain 1235.
sure, except the maths will have to be done in the external command. so foo=$((??prop1?? + ??prop2??))
working with custom properties I see that a property can be create setting type equal to "Regular Expression".
But when I try to link it with BLPackage local property, I see only that property defined like integer or text, and I don't see that prop defined like regular expression.
Why this behaviour?
I think that is by design. A regex wouldn’t allow you to do the math though…
and so, when can it be used regular expression type?
1 of 1 people found this helpful
I believe you use it in the ‘matches’ condition in compliance rules.