Executing an external program

Matthew Newton mcn4 at leicester.ac.uk
Wed Apr 16 14:42:45 CEST 2014


On Wed, Apr 16, 2014 at 05:33:49PM +0500, Muhammad Usman wrote:
>         update reply {
>                 Tmp-String-0 = "%{exec:/usr/bin/java -jar
> "/var/AccountingProcessor.jar" arg1 arg2 >> /home/user/capture.log}"
>         }

Firing up java on each packet is likely to kill your service.


> ++[exec] returns noop
> [attr_filter.accounting_response]       expand: %{User-Name} ->
> muhd.usman at hotmail.com
> attr_filter: Matched entry DEFAULT at line 12
> ++[attr_filter.accounting_response] returns updated
> ERROR: Badly formatted variable: %{exec:/usr/bin/java -jar

You've got quoting problems. Either escape the quotes around
/var/AccountingProcessor.jar, remove them, or use ' instead.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list