Re: Problem with expand result of exec-program
Juan Rodríguez wrote: > 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 See scripts/exec-program-wait This is documented. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Problem with expand result of exec-program
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: al...@deployingradius.com > To: freeradius-users@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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
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
Problem with expand result of exec-program
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 3003integer - 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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html