Networking Forums

Networking Forums > Computer Networking > Linux Networking > get system prot using with process

Reply
Thread Tools Display Modes

get system prot using with process

 
 
xzen
Guest
Posts: n/a

 
      06-15-2008, 12:59 PM
how can i get which port is used by which process?
same as netstat
 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      06-15-2008, 03:16 PM
On Sun, 15 Jun 2008 05:59:27 -0700 (PDT), xzen wrote:
> how can i get which port is used by which process?
> same as netstat


man netstat

Putting which port is used by which process netstat
in the first box at http://groups.google.com/advanced_search
and asterisk linux asterisk in the news group box we find

Results 1 - 10 of about 3,420 for which port is used by which process
netstat group:*linux*
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      06-18-2008, 10:44 PM
On Jun 15, 5:59*am, xzen <tianshizhil...@gmail.com> wrote:
> how can i get which port is used by which process?
> same as netstat


Run, as root:
netstat -a --program

DS
 
Reply With Quote
 
Artur Kaminski
Guest
Posts: n/a

 
      06-23-2008, 08:25 AM
On Jun 18, 11:44*pm, David Schwartz <dav...@webmaster.com> wrote:
> On Jun 15, 5:59*am, xzen <tianshizhil...@gmail.com> wrote:
>
> > how can i get which port is used by which process?
> > same as netstat

>
> Run, as root:
> netstat -a --program
>


I have a short cut for all purposes (except routing table):

netstat -tapln

In effect I forgot which option is for what function :-)


Regards
Artur
 
Reply With Quote
 
Rohit
Guest
Posts: n/a

 
      06-23-2008, 10:04 AM
On Jun 15, 5:59 pm, xzen <tianshizhil...@gmail.com> wrote:
> how can i get which port is used by which process?
> same as netstat


If you mean from your program,
"strace -o trace netstat" would tell you it does and do that.
In case you are lazy to run that command i reads files like
/proc/net/tcp, /proc/net/udp etc.

-- Rohit
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys WRT54G + 2210 Motorola DSL = Problem with prot forwarding FaBBBio==>\Scorpio\ Network Routers 2 02-24-2009 09:30 PM
slow performance/ high CPU usage system process Leon Moerland Windows Networking 0 03-16-2006 02:31 PM
100% CPU Utilization caused by process 'System', with User SYSTEM Phillip N Rounds Windows Networking 3 09-12-2005 07:03 PM
Howmany system mutexes a process can hold? Sreenivas Linux Networking 1 03-02-2005 03:46 AM
Slow DSL Download Speed on WinMe System, Fast on Win2K System Cistan Jones Windows Networking 4 01-03-2004 08:13 AM



1 2 3 4 5 6 7 8 9 10 11