1 |
I think fuser is what you want: |
2 |
|
3 |
EXAMPLES |
4 |
|
5 |
if fuser -s /dev/ttyS1; then :; else something; fi invokes something if |
6 |
no other process is using /dev/ttyS1. |
7 |
|
8 |
fuser telnet/tcp shows all processes at the (local) TELNET port. |
9 |
or |
10 |
fuser 80/tcp |
11 |
|
12 |
|
13 |
|
14 |
On Thu, 15 Jun 2006, Dave S wrote: |
15 |
|
16 |
> Hi all, |
17 |
> |
18 |
> Apparently my SIP port 5060 is in use. Is there a Linux command to tell me |
19 |
> what process is using this port. I have a vague memory of seeing such a |
20 |
> command but just cannot remember or find it. |
21 |
> |
22 |
> Many thanks in advance |
23 |
> |
24 |
> Dave |
25 |
> -- |
26 |
> gentoo-user@g.o mailing list |
27 |
> |
28 |
> |
29 |
-- |
30 |
gentoo-user@g.o mailing list |