netstat -anp|grep LISTEN  
gives the following output with me:(OS RH 7.3)

[EMAIL PROTECTED] root]# netstat -anp|grep LISTEN
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN
956/X               
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
744/sshd            
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN
16570/2             
unix  2      [ ACC ]     STREAM     LISTENING     1846   1078/kdeinit: klaun
/tmp/ksocket-kumar/klauncherfb2dnc.slave-socket

    regards,
    Kumar
-----Original Message-----
From: Payal Rathod [mailto:[EMAIL PROTECTED]
Sent: Montag, 17. November 2003 09:42
To: [EMAIL PROTECTED]
Subject: Re: [LIH]which program listens to which port


On Mon, Nov 17, 2003 at 01:09:02PM +0530, Vinu Chandran wrote:
> Hi
>       netstat -anp | grep "LISTEN"

Sorry this doesn't help. It does not show the name of the program
running.
e.g.

tcp        0      0 0.0.0.0:25              0.0.0.0:*
LISTEN      -
tcp        0      0 127.0.0.1:20025         0.0.0.0:*
LISTEN      -

Any other ideas?
-Payal

-- 
For GNU/Linux Success Stories and Articles visit:
          http://payal.staticky.com



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to