Ok. It's working...thanks a lot!! If I execute my script in wait-program-exec then all it's right and I can get out the variable but if I call an external script in exec module, no. Although I put the same sentence to get my goal...thanks for the lesson...curious :-) Alan DeKok escribió:
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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html