Monday, April 12, 2010

[LINUX_Newbies] Re: Killing Child Processes

 

On 12Apr2010 10:34, J <dreadpiratejeff@gmail.com> wrote:
| On Sun, Apr 11, 2010 at 19:44, mark taye <wiz_mci@yahoo.com> wrote:
| > Hi,
| >    Thanks for responding. I meant I want to write a python script to handle killing processes
| >    already open. So if I were running some app that spawns other processes I can use my
| >    python script and kill the running processes spawned by the parent process. I wrote
| >    a python script to do this but I was unsuccessful in killing all the sub processes.
| >    I hope this is more clear.
| >
| >    Thanks
|
| Please don't top post...
|
| On topic though, it would help if you could post your script...
| another suggestion, though, would be to check out the various mailing
| lists at http://www.python.org/community/lists/.
|
| This is more a list for asking new user type things, and the
| occasional linux discussion. The sister/brother group to this one,
| linux@yahoogroups tends to cover more technical things...
|
| But if you can post the code, I may be able to help.
|
| Or you can try one of the Python lists... but they will also want you
| to either be VERY descriptive, or post the code so they can look at
| it.

He's probably better off here, writing a small parser to understand the PID
and PPID fields of the ps output. But as you say, he's got some code already
which we need to see.
--
Cameron Simpson <cs@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Call for a cop, call for an ambulance, and call for a pizza.
See who shows up first. - J. Snyder _A Nation of Cowards_

__._,_.___
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Welcome to Mom Connection! Share stories, news and more with moms like you.


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.

.

__,_._,___

No comments:

Post a Comment