From owner-freebsd-questions  Tue Jul 13  0:22:11 1999
Delivered-To: freebsd-questions@freebsd.org
Received: from avarice.riverstyx.net (hq-port-97.harbour-dhcp-pool.infinetgroup.com [207.23.37.97])
	by hub.freebsd.org (Postfix) with ESMTP id 96CDE14EFF
	for <questions@FreeBSD.ORG>; Tue, 13 Jul 1999 00:21:27 -0700 (PDT)
	(envelope-from unknown@riverstyx.net)
Received: from avarice (unknown@avarice [207.23.37.97])
	by avarice.riverstyx.net (8.9.3/8.9.3) with ESMTP id AAA12116;
	Tue, 13 Jul 1999 00:20:20 -0700
Date: Tue, 13 Jul 1999 00:20:20 -0700 (PDT)
From: Tani Hosokawa <unknown@riverstyx.net>
To: "Andy V. Oleynik" <andyo@prime.net.ua>
Cc: questions@FreeBSD.ORG
Subject: Re: network stuff
In-Reply-To: <378AE52D.943B9019@prime.net.ua>
Message-ID: <Pine.LNX.4.10.9907130020090.12109-100000@avarice.riverstyx.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: 8BIT
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

I think what you want is fuser... it's on FreeBSD, isn't it?

On Tue, 13 Jul 1999, Andy V. Oleynik wrote:

> Ilia Chipitsine wrote:
> 
> > On Mon, 12 Jul 1999, Amit Kr.Jain wrote:
> >
> > > Hi!!
> > >       Use netstat -a|grep portno.
> >
> > maybe, netstat -an ?
> >
> 
> Why not if portno="smtp" for example. But I really dont understand
> what is the role of netstat here - netstat doesnt show pids
> tcp        0      0  *.ssh                  *.*                    LISTEN
> :P
> 
> > >               to find out the process listening on a particular port
> > >   and then
> > >             ps -ef|grep process
> > >        to look for the info for that process
> > >
> > > *******************************************************************************
> > >
> > >       WORK                            HOME
> > >        ------                          ------
> > >
> > > Amit Kr Jain,                          Flat No 7/2
> > > (Research Engineer),                   7th cross
> > > C-DOT,                                 KHM Block
> > > 2nd floor, Sneha Complex,              Opp Shanti Sagar.
> > > 71/1 Miller Road,                      R.T.Nagar
> > > BANGALORE - 560052                     BANGALORE.
> > >
> > > Voice - 080-2263399 ext 247/329
> > >         080-2261529
> > >                       email: amit@cdotb.ernet.in
> > > *******************************************************************************
> > >
> > > On Sat, 10 Jul 1999, Ilia Chipitsine wrote:
> > >
> > > > Dear All,
> > > >
> > > > how can I get PID of the process that
> > > > listens on particular port (TCP/UDP) ?
> > > >
> > > > Regards, (nAILU^[IE POVELANIQ)
> > > >
> > > >  Ilia Chipitsine (iLXQ {IPICIN)
> > > >
> > > >
> > > >
> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > with "unsubscribe freebsd-questions" in the body of the message
> > > >
> > >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> 
> --
> WBW  Andy V. Oleynik            (When U work in virtual office
> prime.net.ua's                   U have good chance to obtain
> system administrator             virtual money รถ%-)
> +380442448363
> 
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

---
tani hosokawa
river styx internet




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message