I found a utility called lsof which will display
the process name and id information, but I was wondering if there was another way to find it as lsof does not always work.
# ./lsof -V|grep TCP|grep LISTEN
rpcbind 607 root 7u inet 72,0x72 0t0 TCP *ortmap (LISTEN)
sendmail: 906 root 5u inet 0x43a16e68 0t0 TCP *:smtp (LISTEN)
For example this is what a I get from a netstat command,
but it does not show what process name or pid that using port 5244.
# netstat -an|grep 5244
tcp 0 0 *.5244 *.* LISTEN
Thanks in advance,
Robert
the process name and id information, but I was wondering if there was another way to find it as lsof does not always work.
# ./lsof -V|grep TCP|grep LISTEN
rpcbind 607 root 7u inet 72,0x72 0t0 TCP *ortmap (LISTEN)
sendmail: 906 root 5u inet 0x43a16e68 0t0 TCP *:smtp (LISTEN)
For example this is what a I get from a netstat command,
but it does not show what process name or pid that using port 5244.
# netstat -an|grep 5244
tcp 0 0 *.5244 *.* LISTEN
Thanks in advance,
Robert