On Thursday 17 November 2005 23:54, [EMAIL PROTECTED] wrote:
> I have a custom device driver in /dev/ that can only be used by one
> program at a time. Since the device is /dev/ttyUSB0, I can see if anyone
> is using it by:
>
>       ls -l /proc/*/fd/* | grep ttyUSB0
>
> Is there a utility or other better way I can discover which process, or
> better, which program, is using a particular device?
>
> Thanks,
> Michael
try lsof

Attachment: pgp77FskRrYfa.pgp
Description: PGP signature



Reply via email to