Thanks Ashish, I have a problem in that a "child process" can be a perl script that executes a "system" command that could hang...
I can get the pid for the first child, but not "its" child...that is what I am stuck on...I need to kill both in certain circumstances... >From: [EMAIL PROTECTED] >To: "smackdab smackdab" <[EMAIL PROTECTED]>, >[EMAIL PROTECTED], >[EMAIL PROTECTED], >[EMAIL PROTECTED] >Subject: Re:system and kill proc >Date: Thu, 21 Mar 2002 14:26:11 -0800 > >I start the child process using create_process. Get it's PID. I maintain >the >status of all children in a hash. Whenever a child ends, I update the hash. > >In the event the main script is to end for some reason, I check in the hash >table for any children still running and kill them using the Kill comand. > > > >Ashish Tiwari >Senior Software Engineer >IDeaS, Inc. >email: [EMAIL PROTECTED] > > >--------------------------------------------------------------------------- > All opinions are my own and not those of my employer **** > >____________________Reply Separator____________________ >Subject: system and kill proc >Author: "smackdab smackdab" <[EMAIL PROTECTED]> >Date: 3/20/02 8:10 PM > > >Hi I am spawning a perl command process that can spawn another process. >I want to be able to call Kill() on the first one and have the 2nd one also >be killed... > >I saw a CREATE_NEW_PROCESS_GROUP option in the CreateProcess()call...will >this work and does anyone have an example of it? > >thanks! > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > >_______________________________________________ >Perl-Win32-Users mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs >Received: from listserv.ActiveState.com ([209.17.183.249]) by >mailserver.mail1.com with SMTP > (IMA Internet Exchange 3.11) id 000E4ED6; Wed, 20 Mar 2002 20:13:08 >-0800 >Received: (qmail 25853 invoked by alias); 21 Mar 2002 04:12:12 -0000 >Received: (qmail 17352 invoked from network); 21 Mar 2002 04:11:16 -0000 >Received: from localhost (HELO shot.ActiveState.com) (127.0.0.1) > by localhost with SMTP; 21 Mar 2002 04:11:16 -0000 >Delivered-To: [EMAIL PROTECTED] >Received: (qmail 15241 invoked by alias); 21 Mar 2002 04:10:53 -0000 >Received: (qmail 15224 invoked from network); 21 Mar 2002 04:10:53 -0000 >Received: from espresso.activestate.com (HELO smtp1.ActiveState.com) >(192.168.2.150) > by listserv1.activestate.com with SMTP; 21 Mar 2002 04:10:53 -0000 >Received: from hotmail.com (f201.law11.hotmail.com [64.4.17.201]) > by smtp1.ActiveState.com (8.11.6/8.11.6) with ESMTP id g2L4AnL04114; > Wed, 20 Mar 2002 20:10:49 -0800 >Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; > Wed, 20 Mar 2002 20:10:43 -0800 >Received: from 68.5.158.185 by lw11fd.law11.hotmail.msn.com with HTTP; > Thu, 21 Mar 2002 04:10:43 GMT >X-Originating-IP: [68.5.158.185] >From: "smackdab smackdab" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], > [EMAIL PROTECTED], > [EMAIL PROTECTED] >Subject: system and kill proc >Mime-Version: 1.0 >Content-Type: text/plain; format=flowed >Message-ID: <[EMAIL PROTECTED]> >X-OriginalArrivalTime: 21 Mar 2002 04:10:43.0704 (UTC) >FILETIME=[5EC5CF80:01C1D08E] >X-PerlMx-Spam: Gauge=, Probability=0%, Report="" >X-Filtered-By: PerlMx makes it fast and easy. See >http://www.ActiveState.com/Products/PerlMx/Header >Sender: [EMAIL PROTECTED] >Errors-To: [EMAIL PROTECTED] >X-BeenThere: [EMAIL PROTECTED] >X-Mailman-Version: 2.0.5 >Precedence: bulk >List-Help: ><mailto:[EMAIL PROTECTED]?subject=help> >List-Post: <mailto:[EMAIL PROTECTED]> >List-Subscribe: ><http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users>, > ><mailto:[EMAIL PROTECTED]?subject=subscribe> >List-Id: Discussions relating to ActivePerl on Win32 platforms ><perl-win32-users.listserv.ActiveState.com> >List-Unsubscribe: ><http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users>, > ><mailto:[EMAIL PROTECTED]?subject=unsubscrib >e> >List-Archive: <http://mailarchive.activestate.com/browse/perl-win32-users/> >Date: Wed, 20 Mar 2002 20:10:43 -0800 >_______________________________________________ >Perl-Win32-Users mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
