Hi,
I have tried to put single quotes, in that case error is

   expand: %{exec:/usr/bin/java -jar '/var/AccountingProcessor.jar' usman test} -> 
++[reply] returns updated
Sending Accounting-Response of id 23 to 192.168.6.121 port 55006
Finished request 1.
Cleaning up request 1 ID 23 with timestamp +11
Going to the next request
Error: Unable to access jarfile '/var/AccountingProcessor.jar'


On Wed, Apr 16, 2014 at 5:42 PM, Matthew Newton <mcn4@leicester.ac.uk> wrote:
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@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@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@le.ac.uk>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html