On Mon, 2003-10-13 at 09:47, Mark Bruen wrote:
> I've got an old busy mount point on /mnt/cdrom, I'd like to find out 
> what PID is on the mount point (I've got way too many xterms to look at 
> them all). In Slolaris "/usr/proc/bin/pwdx PID" or "fuser -fu 
> <directory>" would give me the PID(s). Any utility like this on RedHat 9?
> Thanks. -Mark
> 


how 'bout fuser ?

[EMAIL PROTECTED] root]# fuser -n file -m -uv /tmp 

                     USER        PID ACCESS COMMAND
/tmp                 root        911 f....  httpd
                     root        992 f....  xfs
                     root       1566 f....  httpd
                     root       1567 f....  httpd
                     root       1568 f....  httpd
                     root       1569 f....  httpd
                     root       1570 f....  httpd
                     root       1571 f....  httpd
                     root       1572 f....  httpd
                     root       1573 f....  httpd
                     root      21326 f....  sshd
                     root      31292 f....  imapd



[EMAIL PROTECTED] root]# rpm -qf `which fuser`
psmisc-20.2-3.73


Bret


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to