开发者

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

开发者 https://www.devze.com 2022-12-28 18:57 出处:网络
I am using the below code in my application ... Proce开发者_开发知识库ss process = Runtime.getRuntime().exec(

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消