It should display the program name with the port no: associated with that.

# netstat -anp | grep LISTEN

tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      
4034/tcpserver      
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN      909/X  
             
tcp        0      0 0.0.0.0:63251           0.0.0.0:*               LISTEN      
1286/wish           
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      
4036/tcpserver

See the last column for the process running on ipaddress:port (3rd column).

Do man netstat and search for switch '-p'. (Show the PID and name of the program to 
which each socket belongs.)

regards

Vinoos.

On Mon, 17 Nov 2003 08:42:28 +0000
Payal Rathod <[EMAIL PROTECTED]> wrote:

> 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
> 




-------------------------------------------------------
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