How can i know file using another process on lunix shell script?

hi all, I did RedHat OS.

How can i know myfile using another process on lunix shell script?

Have you got any suggestions?

Sorry am not clear with the question,

your question sounds like,

to know whether a file is currently being used by the process or not,

if that is so then .. use lsof

man lsof