Re: [gentoo-user] Which process is using port 5060 ?
fire-eyes wrote: netstat -anp | grep :5060 More useful would be lsof (emerge lsof) lsof -n | grep :5060 Why do you say, that lsof is more useful? [EMAIL PROTECTED] ~/Desktop $ sudo netstat -anp | grep 514 udp0 0 0.0.0.0:514 0.0.0.0:* 7050/syslog-ng [EMAIL PROTECTED] ~/Desktop $ lsof -n | grep :514 [EMAIL PROTECTED] ~/Desktop $ sudo lsof -n | grep :514 [EMAIL PROTECTED] ~/Desktop $ So, with my test case, netstat returned me the program which is listening on port 514/udp. lsof showed nothing. Alexander Skwar -- Polymer physicists are into chains. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
Dave S wrote: Hi all, Apparently my SIP port 5060 is in use. Is there a Linux command to tell me what process is using this port. I have a vague memory of seeing such a command but just cannot remember or find it. netstat -tulpen netstat -tulpen | grep 5060 Alexander Skwar -- BOFH Excuse #166: /pub/lunch -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
On Thursday 15 June 2006 17:21, Dave S wrote: > Hi all, > > Apparently my SIP port 5060 is in use. Is there a Linux command to tell me > what process is using this port. I have a vague memory of seeing such a > command but just cannot remember or find it. > > Many thanks in advance > > Dave Thanks for all your answers - thats what I needed :) Dave -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave S wrote: > Hi all, > > Apparently my SIP port 5060 is in use. Is there a Linux command to tell me > what process is using this port. I have a vague memory of seeing such a > command but just cannot remember or find it. > > Many thanks in advance > > Dave `netstat -vapntu' should do the trick. IIRC it will at least give you the PID, if not the process name. - -- gentux echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge' gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239 D840 4CF0 39E2 18D3 4A9E -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEkY/iTPA54hjTSp4RAnCjAJ4woQQbZRg0vx/6p5XjuKkM2dfp1QCeMrPK oGsn1PW9bbJlqF48pF5tgXI= =ttMJ -END PGP SIGNATURE- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
On Thursday 15 June 2006 18:21, Dave S wrote: > Hi all, > > Apparently my SIP port 5060 is in use. Is there a Linux command to > tell me what process is using this port. I have a vague memory of > seeing such a command but just cannot remember or find it. IIRC, it's fuser with the "-n tcp" option, eg # fuser -n tcp 5060 should tell you the pid of the process that is using tcp port 5060. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
2006/6/15, Dave S <[EMAIL PROTECTED]>: Hi all, Apparently my SIP port 5060 is in use. Is there a Linux command to tell me what process is using this port. I have a vague memory of seeing such a command but just cannot remember or find it. Many thanks in advance Dave Are you looking for something like netstat -a | grep 5060 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
I think fuser is what you want: EXAMPLES if fuser -s /dev/ttyS1; then :; else something; fi invokes something if no other process is using /dev/ttyS1. fuser telnet/tcp shows all processes at the (local) TELNET port. or fuser 80/tcp On Thu, 15 Jun 2006, Dave S wrote: Hi all, Apparently my SIP port 5060 is in use. Is there a Linux command to tell me what process is using this port. I have a vague memory of seeing such a command but just cannot remember or find it. Many thanks in advance Dave -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
On Thursday 15 June 2006 12:21, Dave S wrote: > Hi all, > > Apparently my SIP port 5060 is in use. Is there a Linux command to tell me > what process is using this port. I have a vague memory of seeing such a > command but just cannot remember or find it. netstat -anp | grep :5060 More useful would be lsof (emerge lsof) lsof -n | grep :5060 -- "When you walk across the fields with your mind pure and holy, then from all the stones, and all growing things, and all animals, the sparks of their soul come out and cling to you. And then they are purified, and become a holy fire in you." -- Ancient Hasidic Saying -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Which process is using port 5060 ?
On 6/15/06, Dave S <[EMAIL PROTECTED]> wrote: Hi all, Apparently my SIP port 5060 is in use. Is there a Linux command to tell me what process is using this port. I have a vague memory of seeing such a command but just cannot remember or find it. netstat -l -p -Richard -- gentoo-user@gentoo.org mailing list
[gentoo-user] Which process is using port 5060 ?
Hi all, Apparently my SIP port 5060 is in use. Is there a Linux command to tell me what process is using this port. I have a vague memory of seeing such a command but just cannot remember or find it. Many thanks in advance Dave -- gentoo-user@gentoo.org mailing list