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.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.