General
cancel
Showing results for 
Search instead for 
Did you mean: 

VMSTAT returns odd exit code (236)

SOLVED
Go to solution
Lambert Barilleau
Occasional Visitor

VMSTAT returns odd exit code (236)

The vmstat command returns an exit code of 236 even though all appears to work fine (see attached). I am running HPUX B.11.23. Is there a specific patch to correct this issue? Any insight would be greatly appreciated. Cheers...
3 REPLIES
VK2COT
Honored Contributor
Solution

Re: VMSTAT returns odd exit code (236)

Hello Lambert,

If memory serves me well, this has been
experienced by number of commands
on PA-RISC servers running HP-UX 11i v2.

Normally, error 236 is defined as:
ESHUTDOWN Can't send after socket shutdown
\
Small negative integers returned in exit values become return values > 127. More details in
another thread:


http://h30499.www3.hp.com/t5/System-Administration/11-23-PA-logins-command-return-code-236/m-p/4540297#M369275

I have not seen any patches for it yet.

Cheers,

VK2COT

VK2COT - Dusan Baljevic
Lambert Barilleau
Occasional Visitor

Re: VMSTAT returns odd exit code (236)

Thanks for the info... It was very helpful. I guess I will need to code around it for now.

Cheers...
Dennis Handly
Acclaimed Contributor

Re: VMSTAT returns odd exit code (236)

>VK2COT: Small negative integers returned in exit values become return values > 127.

Yes, exit(-20) would return 236.
(Looks like I already figured this out in the URL you mentioned.)