* [gentoo-user] Which process is using port 5060 ?
@ 2006-06-15 16:21 Dave S
2006-06-15 16:31 ` Richard Fish
` (7 more replies)
0 siblings, 8 replies; 10+ messages in thread
From: Dave S @ 2006-06-15 16:21 UTC (permalink / raw
To: Gentoo list
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
@ 2006-06-15 16:31 ` Richard Fish
2006-06-15 16:32 ` fire-eyes
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Richard Fish @ 2006-06-15 16:31 UTC (permalink / raw
To: gentoo-user
On 6/15/06, Dave S <gentoo@pusspaws.net> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
2006-06-15 16:31 ` Richard Fish
@ 2006-06-15 16:32 ` fire-eyes
2006-06-16 14:51 ` Alexander Skwar
2006-06-15 16:35 ` michael
` (5 subsequent siblings)
7 siblings, 1 reply; 10+ messages in thread
From: fire-eyes @ 2006-06-15 16:32 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
2006-06-15 16:31 ` Richard Fish
2006-06-15 16:32 ` fire-eyes
@ 2006-06-15 16:35 ` michael
2006-06-15 16:41 ` Nico Schümann
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: michael @ 2006-06-15 16:35 UTC (permalink / raw
To: Gentoo list
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
` (2 preceding siblings ...)
2006-06-15 16:35 ` michael
@ 2006-06-15 16:41 ` Nico Schümann
2006-06-15 16:50 ` gentuxx
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Nico Schümann @ 2006-06-15 16:41 UTC (permalink / raw
To: gentoo-user
2006/6/15, Dave S <gentoo@pusspaws.net>:
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
` (3 preceding siblings ...)
2006-06-15 16:41 ` Nico Schümann
@ 2006-06-15 16:50 ` gentuxx
2006-06-15 17:05 ` Etaoin Shrdlu
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: gentuxx @ 2006-06-15 16:50 UTC (permalink / raw
To: gentoo-user
-----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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
` (4 preceding siblings ...)
2006-06-15 16:50 ` gentuxx
@ 2006-06-15 17:05 ` Etaoin Shrdlu
2006-06-15 17:06 ` Dave S
2006-06-16 14:49 ` Alexander Skwar
7 siblings, 0 replies; 10+ messages in thread
From: Etaoin Shrdlu @ 2006-06-15 17:05 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
` (5 preceding siblings ...)
2006-06-15 17:05 ` Etaoin Shrdlu
@ 2006-06-15 17:06 ` Dave S
2006-06-16 14:49 ` Alexander Skwar
7 siblings, 0 replies; 10+ messages in thread
From: Dave S @ 2006-06-15 17:06 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
` (6 preceding siblings ...)
2006-06-15 17:06 ` Dave S
@ 2006-06-16 14:49 ` Alexander Skwar
7 siblings, 0 replies; 10+ messages in thread
From: Alexander Skwar @ 2006-06-16 14:49 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Which process is using port 5060 ?
2006-06-15 16:32 ` fire-eyes
@ 2006-06-16 14:51 ` Alexander Skwar
0 siblings, 0 replies; 10+ messages in thread
From: Alexander Skwar @ 2006-06-16 14:51 UTC (permalink / raw
To: gentoo-user
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?
alexander@blatt ~/Desktop $ sudo netstat -anp | grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:* 7050/syslog-ng
alexander@blatt ~/Desktop $ lsof -n | grep :514
alexander@blatt ~/Desktop $ sudo lsof -n | grep :514
alexander@blatt ~/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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-06-16 15:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 16:21 [gentoo-user] Which process is using port 5060 ? Dave S
2006-06-15 16:31 ` Richard Fish
2006-06-15 16:32 ` fire-eyes
2006-06-16 14:51 ` Alexander Skwar
2006-06-15 16:35 ` michael
2006-06-15 16:41 ` Nico Schümann
2006-06-15 16:50 ` gentuxx
2006-06-15 17:05 ` Etaoin Shrdlu
2006-06-15 17:06 ` Dave S
2006-06-16 14:49 ` Alexander Skwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox