who has a file open

is there a script to run that will tell me who has a quark file open on the server? perhaps by IP?

thanks