RE: [squid-users] url_rewrite_program in Java

From: Lu, Roy <rlu_at_FACorelogic.com>
Date: Fri, 15 Jan 2010 14:39:06 -0800

Yes, I tried single quotes and double quotes, neither worked. I was able
to put the java call inside a shell script, but the problem is that, a
new process is spawned off every time the java program is called. This
results in too many process being created and destroyed.

Thanks.
Roy

-----Original Message-----
From: John Doe [mailto:jdmls_at_yahoo.com]
Sent: Friday, January 15, 2010 9:34 AM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] url_rewrite_program in Java

From: "Lu, Roy" <rlu_at_FACorelogic.com>

> From: John Doe [mailto:jdmls_at_yahoo.com]
>> From: "Lu, Roy"
>>> Does anyone have an example of a url rewrite program in Java. I
tried
>>> with the following code but it did not work.
>> You could try to write to a file to see if the java code is run.
>> Also, watch out for output buffers; it need to be flushed each time.
> I tried that, and it showed that the java program is not called.

Not sure if it works but did you try to quote it?:
"/usr/bin/java -classpath /usr/local/squid/sbin/RewriteHelper"
Or maybe single quotes...
Otherwise, try to call a shell script that will run the java code...

JD

      
******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

Thank you.
******************************************************************************************
FACLD
Received on Fri Jan 15 2010 - 22:39:13 MST

This archive was generated by hypermail 2.2.0 : Sat Jan 16 2010 - 12:00:03 MST