1751978 Members
4431 Online
108784 Solutions
New Discussion юеВ

Total swap space size

 
SOLVED
Go to solution
yck
Advisor

Total swap space size

Hi all,

How can I determine the total swap space size a machine has by using C/C++ coding in HPUX?

Thanks.

- ck
ck
4 REPLIES 4
yck
Advisor

Re: Total swap space size

Hi....

Someone can please help me or not .. Cause I really need it urgently..

Thanks..

-ck
ck
Trond Haugen
Honored Contributor

Re: Total swap space size

Maybe you can use a system(3S) call to do a "swapinfo -tm | tail -1 | awk '{print $2}'".

Sorry, that's as close as I get..
Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Stefan Farrelly
Honored Contributor
Solution

Re: Total swap space size

Heres a C program attached to do it.

Chees,

Stefan
Im from Palmerston North, New Zealand, but somehow ended up in London...
yck
Advisor

Re: Total swap space size

Thanks for your both info.
I able to solve my problem now.

-ck
ck