Saturday, April 20, 2013

Find Process Locking File

ps -ef | grep -v PID | awk '{print "pfiles "$2}' | sh | awk '/^[0-9]/ {pid=$1} /xxxxxxxx/ {print pid}'


 xxxxxxx is inode of the file.


No comments: