Problem finding what is using a serial port

How can I determine what process is currently using a serial port? A good bit of google searching hasn't turned up anything useful, but it seems like there has to be a way to do this without too much difficulty.

When I first started looking into this problem, I assumed that when a port was in use, a lock file would be generated for it. Is that not correct? If it is, where are these locks stored?

Any help is greatly appreciated.

Try

/etc/fuser /dev/tty1a

The output is the pid of any processes using it.

Lock files would be in /usr/spool/uucp, but only if the program using the file is cu, uucp or login/getty

1 Like

Thanks very much, that worked like a charm.