return value

Lonni J Friedman netllama at gmail.com
Tue Nov 18 08:44:36 PST 2008


On Tue, Nov 18, 2008 at 3:16 AM, idan72 <ishai at cisco.com> wrote:
>
> Hi,
>
> I am running java program from batch file on linux.

Linux doesn't have batch files.  Do you mean a shell script?

> I want to get the return value using $? .
> If the value is less than 256 there is no problem.If it greater it return
> only the byte (257-> 1, ...) .
>
> How can I overcome this issue that the return value is only a byte ?

I'm not following you.  How can a return value be a unit of
measurement?  Are you saying that if the return code is greater than
256, its coming back as 1 ?  If so, how did you determine this?
Perhaps your java code doesn't have return codes greater than 256?

Can you post the code that is doing this?



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       https://netllama.linux-sxs.org



More information about the Linux-users mailing list