SyntaxFix
Write A Post
Hire A Developer
Questions
You might not want to, but your best bet is to grab the sunfreeware CD and install lsof.
Other than that, yes you can grovel around in /proc with a shell script.