Operating System - HP-UX
1834149 Members
2098 Online
110064 Solutions
New Discussion

Re: lsof install and setup

 
SOLVED
Go to solution
Sanjay Tailor
Frequent Advisor

lsof install and setup

Hello,

I just downloaded the lsof gzip file. I unzipped it and ran swinstall. No problem.
My questions are:

Is there any other install / config to be done after the swinstall?

If not, do I just manually add the path to my root PATH variable so I can call the command?

I noticed a man directory with lsof. How do I "add" this to the rest of the man pages. I tried a man lsof and it said no manual entry for lsof.

Any other help / advice is much appreciated.

Thanks for your help.
Sanjay
3 REPLIES 3
Craig Rants
Honored Contributor
Solution

Re: lsof install and setup

Here is the man page link

http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/man.html

The man page probably is not installed. It probaly is in /opt/lsof/man/man8/lsof.8 .

Run nroff -man /opt/lsof/man/man8/lsof.8 | more
and you should be ok.


I don't know of any other configuration you have to do. You should be good.

HH,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Jeff Machols
Esteemed Contributor

Re: lsof install and setup

The easiest thing to for man is in your profile make this change.

MANPATH=$MANPATH:/opt/lsof/man

or you could copy /opt/lsof/man/* /usr/man/man1m.

Your choice.

Again for the lsof command, either copy or link /sbin/lsof to /opt/lsof/bin. or add /opt/lsof/bin to your PATH
Sridhar Bhaskarla
Honored Contributor

Re: lsof install and setup

Hi,

Another way to get the man page is to including it in your MANPATH variable.

export MANPATH=$MANPATH:/opt/lsof/man

wherever the man directory for lsof is.

You can make it permanent by editing /etc/profile and adding this path nex to MANPATH variable.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try