Re: socko2: kill process by name
Re: socko2: kill process by name
- Subject: Re: socko2: kill process by name
- From: Alex Keresztes <email@hidden>
- Date: Thu, 7 Feb 2002 01:10:56 -0600
I had to do something similar in one of my projects... It is quite
simple using the Carbon Process Manager API.
You can go through the list of processes and find the specific one. If
it is running, you can then send an appleevent
AEQuit to that process.
Alex
On Thursday, February 7, 2002, at 06:16 AM, socko wrote:
i know a process can be killed by name, since ProcessViewer can filter
by
name and kill a process. does anyone know how to (in Cocoa):
1. find a process by name
2. kill that process
i have been able to use the process name to get the process ID of the
process i want to kill in Terminal, but i don't know how to get the
process ID into a kill command once the process ID has been listed in
Terminal. i'm hoping there is some way to do it using Obj-C so i can
avoid Terminal altogether.
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.