Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

puckhead193

macrumors G3
Original poster
May 25, 2004
9,581
873
NY
Anyone's itunes keep on freezing, mine freezes all the time and then i can't force quite or anything....
whats the terminal command to force quite
thanks
 
Here's a command that, while rather odd, displays the pid (process ID) of the iTunes application when it is running. Cut and paste it so you don't have to type such an awful thing yourself.

ps -x | grep '[i,i]Tunes ' | awk '{print $1}'

(Ten points to anyone who can explain why I used [i,i]Tunes instead of iTunes.)
 
hehe. I just type "top" and search for the PiD. Nice knowing you can target the exact app. Comes in handy for scripts. :D
 
Doctor Q said:
Here's a command that, while rather odd, displays the pid (process ID) of the iTunes application when it is running. Cut and paste it so you don't have to type such an awful thing yourself.

ps -x | grep '[i,i]Tunes ' | awk '{print $1}'

(Ten points to anyone who can explain why I used [i,i]Tunes instead of iTunes.)
You have a stuttering problem?
 
Stampyhead said:
You have a stuttering problem?
Well, y-y-yes, but that's n-n-not why I typed that command on my P-P-Powerbook. (My apologies to those with speech problems.)

If you use a grep command for "iTunes" you find two processes with that word in their "ps" line, namely the real iTunes and the grep command itself, since it too contains the word iTunes. By using the bracketed expression, which means "letter i or letter i", you find the real iTunes process but not the grep command! One of those sneaky Unix tricks that shows how you can be clever with shell commands and why it can also be infuriating.

The trailing space after 'Tunes ' avoids finding other processes such as iTunesHelper.app.

Were you able to solve the problem, puckhead193?
 
yea... i restarted my computer....
when i copy and paste that in terminal, nuthing happens, unless i'm doing something wrong, i think its me though cause i have no idea how to use terminal.... :eek: ;)
 
puckhead193 said:
yea... i restarted my computer....
when i copy and paste that in terminal, nuthing happens, unless i'm doing something wrong, i think its me though cause i have no idea how to use terminal.... :eek: ;)
If "nothing happens" means you simply get another prompt in Terminal, that would indicate either that my command didn't work or that iTunes isn't running. Since you restarted, it must be the latter!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.