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

Reply via email to