12 Jun
2009
12 Jun
'09
4:20 a.m.
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.