Anil kumar P

Greenhorn
+ Follow
since Jan 16, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anil kumar P

The shell script is returning value as 255 only.
But the java programme is returning as -1.

If the return value is less than 128, then java is also returning
correctly as 128.
16 years ago
hi
From my standalone java application an exe is invoked, which retuns
value till 255.
But in linux 32 bit environment, if the return value
is above 128, then it is returning -1, not the actual value.

Process process = Runtime.exec(".sh file invoking the exe");
int return = process.waitFor();
return variable is having -1, if value is greater than 128.

If the above exe is executed from telnet client, it is returning correct
value 255.

This issue doesnt exist in any Unix 64 bit env.
Java version installed in 1.4.2.5_16

Pls advice

thanks
Anil
16 years ago