Connecting Tech Pros Worldwide Help | Site Map

Kill a process in Perl

  #1  
Old July 11th, 2009, 06:51 AM
Newbie
 
Join Date: Jul 2009
Posts: 2
Hi,

I am trying to kill an external process called out in Perl after certain seconds.

I am using Windows.

I want to call out "a.exe" in perl in a new thread (so that the main perl program can go on). Then I want to kill the "a.exe" after 30 seconds before a.exe naturally ends by itself which usually takes 10mins ?

I must kill it by it's process ID but not the process name, because I will run many a.exe at the same time, and I only want the perl to kill its own a.exe. But, I have no idea how to get process ID also...

Please kindly help me. Thanks in advance!

Uzers.
  #2  
Old July 11th, 2009, 11:28 AM
Newbie
 
Join Date: Jul 2009
Posts: 2

re: Kill a process in Perl


Thanks PerlMonks! My problem was solved. Any interested in this issue please see http://perlmonks.org/index.pl?node_id=779114

Uzers.
  #3  
Old July 11th, 2009, 08:15 PM
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,097

re: Kill a process in Perl


jeez, how many forums and sub forums did you post this one? At least you can back and altered them all you found a solution.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
pipe output to a perl script afelotreyu answers 1 September 17th, 2008 01:09 AM
Create process problem mdshafi01 answers 3 January 24th, 2008 10:05 AM
Perl problem to add timeout for external calls on Win32 webotronics answers 1 December 7th, 2007 01:18 PM
compiling perl 5.8.7 on Solaris 8 Kirt Loki Dankmyer answers 0 November 22nd, 2005 04:05 AM