Problem with expand result of exec-program

Juan Rodríguez cutrez at hotmail.com
Thu Sep 23 14:37:47 CEST 2010


Thank you Alan.
I get this error now:
        expand: %{exec:/aplicaciones/radius/bin/radius_ath.sh} -> 1 
ERROR: Failed parsing value "1 " for attribute mi-resultado-script: Unknown value 1  for attribute mi-resultado-script

We can see a space after value 1. I've write in my script the line
echo 1

only to be sure, but this space appear again.
Could you help me with this?
Thanks again.


> Date: Thu, 23 Sep 2010 13:19:54 +0200
> From: aland at deployingradius.com
> To: freeradius-users at lists.freeradius.org
> Subject: Re: Problem with expand result of exec-program
> 
> Juan Rodríguez wrote:
> > Hi everybody!!
> > Executing /aplicaciones/radius/bin/radius_ath.sh
> > Exec-Program output:
> 
>   The program printed nothing.
> 
> > 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?
> 
>   Fix your program so that it prints something to the output.
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100923/a1f1cd53/attachment.html>


More information about the Freeradius-Users mailing list