Guest_imported
New member
- Jan 1, 1970
- 0
Hi there. I'm trying to execute a .bat file (in fact is a perl file converted to .bat with pl2bat) from a jsp. The .bat file creates some other files at disk. I use Runtime.exec to launch the bat file from the jsp, and I would like the jsp to wait until the .bat file finishes, but I don't know how. As far as I know, the exec method creates a new process (inside the JVM?) but it seems to me that when the jsp finishes, the other process does so without finishing its work. Any clues? Thanks.