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



On 2/13/07 1:32 PM, "Theresa Bright" <email@hidden> 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...............?
> Please help,
> Theresa Bright
> District Technology Services
> Cottonwood, Arizona

The easiest way to accomplish this is to add the following alias/program to
the .profile of your admin or root user's shell (assuming it's bash) on all
your managed machines:

killname () { ps auxww | egrep $@ | awk '{print $1}' | xargs kill -9; }

This command allows you to kill any running process by supplying a part of
its name. For example, 'killname Word' will kill the process associated with
Microsoft Word.

If you want to do this without the convenience of the killname command, just
issue the entire command:

ps auxww | egrep XXX | awk '{print $1}' | xargs kill -9

where xxx is a case-sensitive part of the app name, without spaces. Beware,
though, if the search term is not specific enough, it may match multiple
processes and terminate them all.


------------------------------
Peter M. Bukowinski
IT - Sr. Support Analyst
Janelia Farm Research Campus
Howard Hughes Medical Institute 

 _______________________________________________
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.