Doesn't work on OS X since Darwin hasn't implemented /proc. But Amit Singh has some pretty interesting information about hacking together something similar.<p><a href="http://osxbook.com/book/bonus/chapter11/procfs/" rel="nofollow">http://osxbook.com/book/bonus/chapter11/procfs/</a>