Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have spent many hours reading trying to find a solution to my problem.
My problem:
I am calling a runcommand java function from oracle to run a bat file. This bat file has lines like this:
@echo off
d: >nul
cd \oradmin\DEV1\ >nul
"d:\Cypress\bin\fvssn.exe"<"BRUNSK_19100180_101_4_346050.rsp" >nul
exitFor now there is only one line calling that fvssn.exe, but there will be many others to process, I am just testing this with one for now. This bat file will be running on a server. When the web app runs this java function, it runs the bat file which in turn runs the fvssn.exe. I can see the both processes, the cmd.exe and the fvssn.exe, running on the server, but it doesn't create the necessary outputs intended.
This is the contents of the rsp file:
d:\oradmin\DEV1\BRUNSK_19100180_101_4_346050.key
nul
d:\oradmin\DEV1\BRUNSK_19100180_101_4_346050.out
d:\oradmin\DEV1\BRUNSK_19100180_101_4_346050.tls
nul
nulThese are essential inputs for the fvssn.exe. I guess there is nothing to worry about here because this runs fines when the bat file is run from the server.
So, to resume my problem: My bat file runs when it’s double-clicked on the server and creates the two files out and tls. When I running from the java function using the Runtime.getRuntime().exec ( cmd ), it creates the process but not output. It seems like it deadlock or something. I have follow ideas like http://www.javaworld.com/javaworld/... , but no success.
Thanks
David

![]() |
Coding Problem
|
DarkBASIC Icon Help
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |