Monitor connections to iTunes4 sharing - method #1

May 02, '03 09:58:00AM

Contributed by: Mikey-San

iTunes 4 lets you see how many users are connected to your shared stream, but not what they're listening to. Terminal to the rescue! Use lsof to figure out who's listening to what:

 % lsof | grep mp3
 % lsof | grep m4a
Etcetera, etcetera. This only works if you use filename suffixes, though. Or, if you'd just like to see everything at once, and all your music is in a central music folder, for example, "Music", do this:
 % lsof | grep Music
Woot! Perhaps this will make its way into iTunes as an update at some point.

[robg adds: I chose to run this hint and the next hint separately, as they are two unique methods, and comments on both could go either direction...]

Comments (8)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030430141817856