It works! Thanks a lot.
Luis A. Herrero I've tried it in a script: -- #!/bin/sh /bin/echo PRUEBA >> /home/pru.txt /usr/bin/printenv > /home/variables.txt -- And it works but the execution environment for the script is peculiar, for example there is no PATH, I write it here cause I think it could be usefull for somebody (no documents found about it). This is the result when accounting stop is received, cisco 1100 AP, freeradius 1.0.1-2RHEL, with EAP-TTLS(PAP): -- $ more variables.txt CALLED_STATION_ID="000z.zzzz.zzzz" CALLING_STATION_ID="000y.yyyy.yyyy" ACCT_UNIQUE_SESSION_ID="2e1d72209879zzzz" SERVICE_TYPE=Framed-User STRIPPED_USER_NAME="user" NAS_PORT=279 ACCT_SESSION_ID="0000001A" ACCT_STATUS_TYPE=Stop REALM="NULL" NAS_PORT_TYPE=Wireless-802.11 USER_NAME="user" ACCT_DELAY_TIME=0 ACCT_TERMINATE_CAUSE=Lost-Carrier NAS_IP_ADDRESS=10.1.1.200 SHLVL=1 ACCT_AUTHENTIC=RADIUS ACCT_INPUT_OCTETS=9580058 ACCT_OUTPUT_PACKETS=206086 CLIENT_IP_ADDRESS=10.1.1.200 ACCT_INPUT_PACKETS=107595 CISCO_NAS_PORT="279" ACCT_SESSION_TIME=440 CISCO_AVPAIR="disc-cause-ext=No Reason" ACCT_OUTPUT_OCTETS=313966728 _=/usr/bin/printenv -- > -----Mensaje original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En > nombre de Dustin Doris > Enviado el: viernes, 11 de marzo de 2005 16:32 > Para: freeradius-users@lists.freeradius.org > Asunto: Re: Exec-Program in acct_users doesn't work > > > Hi, > > > > I have a problem with Accounting-script-execution in > raddb/acct_users : > > -- > > DEFAULT Acct-Status-Type == Stop > > Exec-Program = "echo PRUEBA >> /home/pru.txt" > > -- > > > > I don't know if you can do it like that. You could try > writing a script such as this. > > #!/bin/sh > /bin/echo "PRUEBA" >> /home/pru.txt > > Or if you are intending to do something else with that, this > will show you all the variables passed to it > > #!/bin/sh > /usr/bin/printenv >> /home/variables.txt > > Then call that script instead. > > Exec-Program "/path/to/yourscript.sh" > > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html