Find Out Who is Listening to Your iTunes Collection
Posted in Apple, Downloadable by Dan at 9:02 am

With iTunes giving you the ability to share your music library I’m left wondering WHAT people are listening to when they are connected. iTunes Monitor, a Mac only program, does it show you who’s connected to your shared music, it also tells you what they’re listening to. Unfortunately it is complied for the PowerPC processor only, so on an Intel Mac your processor usage soars using this neat little utility.

Also check out this handy dashboard widget i found some time ago: http://argon18.com/widgets/
It uses a simple LSOF command to see what files are open and the connections associated with them.
This will get you the users connected:
lsof -bw -F -itcp:daap | grep ‘daap->’
This will get the songs currently playing in itunes( also songe YOU are playing locally):
lsof -F -c iTunes | egrep ‘(\.aac|\.mp3|\.wav|\.aiff|\.m4a|\.m4p|\.m4b)’
Have fun with the terminal!