|
|
Quit applications politely from the command line
Yes, really. For example, the command one might expect to work as desired,
killall -QUIT TextEdit, produces an error message saying "The application TextEdit quit unexpectedly." By all means feel free to play around with the various kill signals, but from what I can find, none of them perform the same way as pressing ⌘Q when using the application.
Obviously every application has a process at its core, so you will see at least one process for each application, but an application is more than just a process.
Quit applications politely from the command line
I just tried it: "killall -TERM TextEdit" works as I expect, producing no error message but just telling TextEdit to die asap. "killall -QUIT" indeed does behave different. But SIGTERM is what's usually sent if you do not give an explicit signal.
Quit applications politely from the command line
Perhaps this example will help further illuminate the matter: I use an application called Journler that updates its internal database as part of its quitting procedure.
killall Journler kills the app without triggering that procedure.
For further reading, you might be interested in this. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|