Hi,
i'm trying to execute programms via Runtime.exec(cmd, envp, dir) which works just fine for DOS batches, Java-Tools and the like.
Problem are semi-interactive programms such Oracle's sqlplus. You can start it with an optional configuration file and thereby make it _not_ interactive. however if there is an error in the configuration file it crashes and Runtime.exec() hangs not displaying the error message or logging it to a textfile.
How can I avoid that - how can I add interactivity to Runtime.exec() calls?
Any hints welcome.
regards
chenn
i'm trying to execute programms via Runtime.exec(cmd, envp, dir) which works just fine for DOS batches, Java-Tools and the like.
Problem are semi-interactive programms such Oracle's sqlplus. You can start it with an optional configuration file and thereby make it _not_ interactive. however if there is an error in the configuration file it crashes and Runtime.exec() hangs not displaying the error message or logging it to a textfile.
How can I avoid that - how can I add interactivity to Runtime.exec() calls?
Any hints welcome.
regards
chenn