Problem with expand result of exec-program

Juan Rodríguez cutrez at hotmail.com
Thu Sep 23 12:01:17 CEST 2010


Hi everybody!!
I've got a strange problem with expand the result of the execution of a program. This is my config data:

------------------ dictionary -----------------------
ATTRIBUTE       mi-resultado-script     3003    integer


----------------- exec --------------------------
exec {
        wait = yes
        shell_escape = yes
        output = yes
}

--------------- sites-available/default --------------------------
mi-resultado-script = "%{exec:/aplicaciones/radius/bin/radius_ath.sh}"


But during the execution:

Executing /aplicaciones/radius/bin/radius_ath.sh
Exec-Program output: 
Exec-Program: returned: 1
result 1
expand: %{exec:/aplicaciones/radius/bin/radius_ath.sh} -> 

The result of the program is "1" but the value of the expression is not expanded, and the attribute "mi-resultado-script" has always zero value.

Could you help me with this?

Thank you very much.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100923/f4de3697/attachment.html>


More information about the Freeradius-Users mailing list