Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 1999 10:05:18 +0300
From:      "Andy V. Oleynik" <andyo@prime.net.ua>
To:        questions@FreeBSD.ORG
Subject:   Re: network stuff
Message-ID:  <378AE52D.943B9019@prime.net.ua>
References:  <Pine.BSF.4.05.9907122052110.309-100000@localhost.cgu.chel.su>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?378AE52D.943B9019>