By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,541 Members | 1,455 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,541 IT Pros & Developers. It's quick & easy.

Kill a process in Perl

P: 2

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!

Jul 11 '09 #1
Share this Question
Share on Google+
2 Replies

P: 2
Thanks PerlMonks! My problem was solved. Any interested in this issue please see

Jul 11 '09 #2

Expert 2.5K+
P: 4,059
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.
Jul 11 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.