process.waitFor() does not seem to return the right value
I am using the below code in my application ...
Proce开发者_开发知识库ss process = Runtime.getRuntime().exec(
"perl " + perlScript + " " + project + " " + fileName);
:
:
:
result = process.waitFor();
:
:
and this result gives the code 2 every time.....while running the application.
what could be the reason for the "reason code" ???
Thanks In Advance
The perl script that you call is returning the value 2. You need to look at the perl script to determine what that value means--there is no generic way to know why a given program returns a given value.
精彩评论