command to quit an app from Terminal

When I force quit Final Cut Pro HD, the app still has a black triangle next to it in the dock.

When I bring up force quit again, the app is still listed.

What's the command to quit an app from Terminal?

Mac Mini, G5, G4, G3, iBook, iMac and Classic, Mac OS X (10.3.9)

Posted on Feb 5, 2007 6:04 AM

Reply
4 replies

Feb 5, 2007 6:55 AM in response to swanker

First you need to find the process ID (PID) for Final Cut Pro:

ps -aux | grep Final\ Cut\ Pro


Check the STATE of the process. If it says E, it means that the process is trying to exit. For a list of the diffterent PROCESS STATE CODES, have a look here: http://unixhelp.ed.ac.uk/CGI/man-cgi?ps (or do "man ps" in Terminal)

You can try killing the process, by typing this command (replace # with the PID of Final Cut Pro):

sudo kill -9 #



If that doesn't work, there isn't much else to do. Quit all other applications, and try doing a forced shutdown by typing this in the Terminal:

sudo shutdown -h now

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

command to quit an app from Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.