Executing an external program

Muhammad Usman muhd.usman87 at gmail.com
Wed Apr 16 15:08:00 CEST 2014


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 at 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 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>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140416/d18b5dee/attachment.html>


More information about the Freeradius-Users mailing list