Operating System - HP-UX
1825766 Members
2137 Online
109687 Solutions
New Discussion

Re: get current nb file locks

 
Sockeel
Occasional Advisor

get current nb file locks

Hi,

How can I get current number of file locks on a 11.0 system programatically ?

I know glance can get it, so, this information is available somewhere... but where ?

Thanks
Philippe
4 REPLIES 4
Aussan
Respected Contributor

Re: get current nb file locks


Hi Philippe

hope this link helps you

http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x5ce6d211e18ad5118ff10090279cd0f9%2C00.html&admit=-682735245+1178299060977+28353475


Regards

Aussan
The tongue weighs practically nothing, but so few people can hold it
Sockeel
Occasional Advisor

Re: get current nb file locks

Hi Aussan,

Yes, but is there any function available on 11.0 system which returns such information ?
Pstat functions don't...

Thanks
Regards
Philippe
Sandman!
Honored Contributor

Re: get current nb file locks

A. Clay Stephenson
Acclaimed Contributor

Re: get current nb file locks

I would download the source for lsof
http://hpux.its.tudelft.nl/hppd/hpux/Sysadmin/lsof-4.77/
and see how they do it.
If it ain't broke, I can fix that.