Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing Applications using ARD



At 01:32 PM 2/13/2007, Theresa Bright wrote:
Hey,
I have five computer labs using ARD 2.2.....
How can they quit applications without shutting down or logging
students off?
The 'killall" command only seems to work for Safari  but not for
other apps like Word, Excel, or any other software.

While others have pointed out some working solutions -- the only reason killall is not working is probably because the process name has to match exactly what you enter. For Word, you have to run:
killall "Microsoft Word"
Similarly, excel is:
killall "Microsoft Excel"


A good way of seeing the full process name (without the path) is this command:
        ps -auxcww

Or, if you want to use just "Word" because (like me), you are a lazy typist, use the "-m" option to killall, which uses regular expression matching:
killall -m Word


Please note that regular expressions can be dangerous in the wrong hands, especially when using them (as root!) to kill processes. If possible, run the command as the logged-in user when using -m.

Another point I'd like to make -- you shouldn't be using "kill -9" unless a simple "kill" doesn't work. A "regular" kill (SIGTERM) will give the application a chance to clean up after itself (remove cache files, etc) -- and in some cases allow the user to save their documents. With "kill -9" (SIGKILL), the process is killed, do not pass "GO", do not collect $200. In other words, it isn't a very nice thing to do.

HTH,
Rob

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/remote-desktop/email@hidden

This email sent to email@hidden
References: 
 >Killing Applications using ARD (From: Theresa Bright <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.