Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Display a count of connected iTunes users Apps
Some of my coworkers like to share iTunes on our LAN. It occurred to me that it would be fun (and maybe useful) to see how many people were streaming shared playlists at any given time. Aside from viewing status in the sharing prefs, I could find no obvious way to do this. So I whipped up a little shell script that watches for new connections on port 3689.

The script will write a list of IP numbers of remote iTunes clients to a log file, then name that file with the number of connections so that it could be seen in the Finder. Just create an empty folder somewhere and enter its path at the top of this script. Open this folder and position it wherever you want it to appear when users connect. If you select list view, the log file won't move around when the window is refreshed. Then have a cron job run it periodically.

[robg adds: Remember to make the script executable via chmod 755 script_name. The script worked well for me in testing. With minor modifications, you could have the script write the number to a file, then use Geeklog to display the contents of that file in a more visually interesting manor.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[8,298 views]  

Display a count of connected iTunes users | 5 comments | Create New Account
Click here to return to the 'Display a count of connected iTunes users' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Display a count of connected iTunes users
Authored by: hamarkus on Tue, Feb 6 2007 at 8:06AM PST
In iTunes, hit cmd-; (i.e. open its preferences), click on the Sharing button. At the bottom of the preferences window a line will read: "Status: on, X users connected".
For information about what songs are being listened to use the Applescript "What are people listening 2" (available among others on Doug's site).

[ Reply to This | # ]
Display a count of connected iTunes users
Authored by: turkchgo on Tue, Feb 6 2007 at 9:12AM PST
Or you could just use iTunes connection monitor app which will show you the ip address of the connected users and what songs they have open.

http://www.versiontracker.com/dyn/moreinfo/macosx/26572

[ Reply to This | # ]
iTunes monitor app too!
Authored by: turkchgo on Tue, Feb 6 2007 at 9:15AM PST
Also this stand-alone app is good too for doing the same thing

iTunes Monitor

http://www.versiontracker.com/dyn/moreinfo/macosx/19869

[ Reply to This | # ]
Display a count of connected iTunes users
Authored by: ctierney on Wed, Feb 7 2007 at 8:39AM PST
Thanks for the comments and alternative apps!

I'm not surprised that there're existing solutions. I mainly saw this as an interesting oportunity to practise my sed. :-) I plan on adding a couple parameters so I can montor connections on other ports.


[ Reply to This | # ]
Display a count of connected iTunes users
Authored by: k0t1k968 on Fri, Feb 9 2007 at 1:16PM PST
Widget "iServe" does this (and also count iPhoto, AFP, ARD and SSH connections )

http://www.versiontracker.com/dyn/moreinfo/macosx/31854

---
Andrei Tchijov
Leaping Bytes, LLC

[ Reply to This | # ]