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



what you really want is to use 'w' as it uses the full 132 columns instead of the size of your window which is the limitation you have been experiencing. making use of awk then allows less processes to parse out the pid.

ps auxww | awk '/Microsoft/ && !/awk/ {print$2}' | xargs kill -9

This will whack anything to do with Microsoft, so beware. Fine tune things as you see fit and use caution.


Nick McSpadden wrote:

On Feb 13, 2007, at 10:32 AM, 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.
Any Ideas...............?

There's an interesting limitation I've discovered about the kill command. When you use "killall" based on the name of an application, it seems to look around the process list based on a certain size of window.


For example, send "ps aux" as a UNIX command to a machine; it usually cuts off the full list of results. For whatever reason, if you don't include the -a argument to "ps", the Office products tend not to show up in the process list. Just doing "ps x" on a machine running Word will not show Microsoft Word in the list. A way around this is to use "ps auxc" to get a list of all applications that are running, but not the full paths. This'll give you the end result you need.

In other words, on a machine running the software you want to kill, i.e. Microsoft Word, run this:
ps auxc | grep "Microsoft"


Once you have the PID # of the process you want, just use "kill -9 <pid>" (without the quotes, obviously). --
Nick McSpadden
Schools of the Sacred Heart
Technology Network Assistant



------------------------------------------------------------------------

 _______________________________________________
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


--
- Ken Garland
- Systems Administrator
- Rotech Healthcare, Inc.
- 321.235.3100 x 2042

_______________________________________________
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>)
 >Re: Killing Applications using ARD (From: Nick McSpadden <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.