Author Login
Post Reply
On Wed, Jul 16, 2008 at 10:49 AM, Anazys - Apache <apache@(protected):
> 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 time but nothing after this first call. It's
> normal because there isn't any loop, but i don't know how to write this loop
> in the shell script.
It's a bug in your java code. It should be able to read until stdin is closed.
--
Eric Covener
covener@(protected)
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
" from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)