Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Eric Covener
On Wed, Jul 16, 2008 at 10:49 AM, Anazys - Apache <[EMAIL PROTECTED]> wrote: > My Java class read from stdin (System.in), the main problem is the loop : > with the "while read text", there is an infinite loop. > > But when I only write a call from the shell to the java class : >#!/bin/sh >

Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Anazys - Apache
My Java class read from stdin (System.in), the main problem is the loop : with the "while read text", there is an infinite loop. But when I only write a call from the shell to the java class : #!/bin/sh java -classpath /path/to/java/class/ MainClass It work perfectly the first t

Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Eric Covener
On Wed, Jul 16, 2008 at 3:01 AM, Anazys - Apache <[EMAIL PROTECTED]> wrote: > Thanks for your answer. I already try this but when I write this script, I > don't know how to handle the loop with stdin (in the shell script or in the > java file ?) : > I try this in the shell : >#!/bin/sh >

Re: [EMAIL PROTECTED] RewriteMap with Java & RewriteLock

2008-07-16 Thread Anazys - Apache
Thanks for your answer. I already try this but when I write this script, I don't know how to handle the loop with stdin (in the shell script or in the java file ?) : I try this in the shell : #!/bin/sh while read text do java -classpath /path/to/java/cla

Re: [EMAIL PROTECTED] RewriteMap with Java

2008-07-15 Thread Eric Covener
On Tue, Jul 15, 2008 at 4:26 AM, Anazys - Apache <[EMAIL PROTECTED]> wrote: > Hi all, > > I try tu use a RewriteMap to rewrite dynamically urls on MacOS 10.5 Leopard > Server. The code is really simple in the http.conf file : > >RewriteMapmymap prg:/path/to/map.class >Rewr

[EMAIL PROTECTED] RewriteMap with Java

2008-07-15 Thread Anazys - Apache
Hi all, I try tu use a RewriteMap to rewrite dynamically urls on MacOS 10.5 Leopard Server. The code is really simple in the http.conf file : RewriteMapmymap prg:/path/to/map.class RewriteRule ^/path/(.*)$ /path/page?${mymap:$1} But when I launch Apache, I have t