This is the first time I've used Runtime.exec();
Here's the code:
Runtime rt = Runtime.getRuntime();
process = rt.exec(jobCommand);
BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line=null;
while((line=input.readLine()) != null) {
System.out.println("OUTPUT: " + line);
}
int exitVal = process.waitFor();
} catch(Exception e) {
e.printStackTrace();
}//end catch
as you can see, this is just copied and pasted out of the standard example for this method.
When it gets to the line:
while((line=input.readLine()) != null)
it doesn't read anything. However, when i run the SAME exact command from the windows CMD prompt i get a ton of output.
what am i doing wrong here?
thanks.