Exec remote command in Preprocess
Alan DeKok
aland at deployingradius.com
Fri Feb 28 20:39:55 CET 2014
Rafal Pilos wrote:
> if (%{exec:/path/to/script.sh} == "some numbers"){
That's wrong. See "man unlang".
> However this doesn't work.
> Debug shows:
> Bare %{...} is invalid in condition at: %{exec:/path/to/script.sh} ==
> "some numbers")
> What im doing wrong ?
Add quotes around the exec:
if ("%{exec:...}" == "blah") {
> Is there possibility to execute remote script in this place ?
Yes.
Alan DeKok.
More information about the Freeradius-Users
mailing list