refresh variable after exec module

Alan DeKok aland at deployingradius.com
Fri Jun 12 10:20:11 CEST 2009


bLn wrote:
> Because I do an update into radgroupreply but now I'm doing a "select"
> and save the result into a variable, like this:
> 
> REPLY_MESSAGE="$(mysql -Ns -h$HOST -u$USER -p$PASS -e "SELECT Value FROM
> radgroupreply WHERE Attribute='Reply-Message' AND
> GroupName='$GROUP_NAME'" $BD)"

  That won't work.  The environment variables are NOT passed back to the
server when the script exits.

  The file program scripts/exec-program-wait contains examples of how to
pass variables from the script to FreeRADIUS.

> but the results keep into the script and I don't know how I could get it
> out.

  The documentation and examples say how to do this.

  Alan DeKok.



More information about the Freeradius-Users mailing list