[TriLUG] which process is listening on this socket
Alexey Toptygin
alexeyt at freeshell.org
Wed Feb 29 14:37:25 EST 2012
On Wed, 29 Feb 2012, Steve Holton wrote:
> Hopefully someone knows a trick on this....
>
> netstat shows certain local sockets as open (LISTEN)
>
> I need to know which process is listening to which socket?
>
> Simple: use lsof, right. Except this is a SVR4 box without it.
>
> Perhaps one of the old and wise from this list remembers a similar command
> for SVR4, or knows a technique to expose the likely culprit?
Not literally SVR4, but a descendant, surely? What's the exact system?
Anyway, does your system have fstat(1)? The netbsd 5.1 manpages suggest
that that's the best way to do that on that system.
Alexey
More information about the TriLUG
mailing list