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@xxxxxxxxx] Sent: Friday, January 15, 2010 9:34 AM To: squid-users@xxxxxxxxxxxxxxx Subject: Re: url_rewrite_program in Java From: "Lu, Roy" <rlu@xxxxxxxxxxxxxxx> > From: John Doe [mailto:jdmls@xxxxxxxxx] >> 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