Re: [[your message]]
On Wed, Aug 18, 2004 at 04:02:17PM -0500, junk wrote:
> How do you find a process that is using a file. I am trying to run
> rhythmbox 0.8.5 and I get this error when I try to play a song.
>
> OSS device "/dev/dsp" is already in use by another program.
>
> A man page would be most helpful.
>
> Junk
man lsof
Usage example:
stefan:~$ lsof /dev/pts/2
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 353 stefan 0u CHR 136,2 4 /dev/pts/2
bash 353 stefan 1u CHR 136,2 4 /dev/pts/2
bash 353 stefan 2u CHR 136,2 4 /dev/pts/2
bash 353 stefan 255u CHR 136,2 4 /dev/pts/2
mutt 2982 stefan 0u CHR 136,2 4 /dev/pts/2
mutt 2982 stefan 1u CHR 136,2 4 /dev/pts/2
mutt 2982 stefan 2u CHR 136,2 4 /dev/pts/2
editor 2988 stefan 0u CHR 136,2 4 /dev/pts/2
editor 2988 stefan 1u CHR 136,2 4 /dev/pts/2
editor 2988 stefan 2u CHR 136,2 4 /dev/pts/2
(in the `lsof' package if you don't have it.)
Reply to: