From owner-freebsd-questions Tue Jul 13 0: 5:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from volodya.prime.net.ua (volodya.prime.net.ua [195.64.229.17]) by hub.freebsd.org (Postfix) with ESMTP id E515914C2F for ; Tue, 13 Jul 1999 00:05:26 -0700 (PDT) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost [127.0.0.1]) by volodya.prime.net.ua (8.9.3/8.8.8) with ESMTP id KAA01647 for ; Tue, 13 Jul 1999 10:05:22 +0300 (EEST) (envelope-from andyo@prime.net.ua) Message-ID: <378AE52D.943B9019@prime.net.ua> Date: Tue, 13 Jul 1999 10:05:18 +0300 From: "Andy V. Oleynik" Organization: M-Info X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: ru, en MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: Re: network stuff References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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