Reputation: 145
I am using the below code in my application ...
Process 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
Upvotes: 1
Views: 1934
Reputation: 41378
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.
Upvotes: 2