here is the first one liner i have ever written. it will find the process id of itunes and show you all the mp3s it currently has open. very useful if you like to share you music on the network, but get mad when people start raping your music library. so if you run this command three times and it appears like the user has listened to three different songs in a couple seconds; this probably means someone is downloading your music library. i also use menu meters, so i can see my bandwidth skyrocket.
ps -A | grep -e iTunes | awk '{ system("lsof -p " $1); }' | grep -e mp3
here is the zsh alias, kind of a pain to figure out how to nest the single quotes.
alias it='ps -A | grep -e iTunes | awk '"'"'{ system("lsof -p " $1); }'"'"' | grep -e mp3'
Sunday, October 08, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment