user306689
user306689

Reputation: 145

process.waitFor() does not seem to return the right value

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

Answers (1)

JSBձոգչ
JSBձոգչ

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

Related Questions