Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > killing a process using its PID

Reply
Thread Tools

killing a process using its PID

 
 
Federico
Guest
Posts: n/a
 
      09-13-2004
Hello,

I want my perl script to be able to kill a process given its pid. I
could invoque the UNIX kill -9, but I would prefer something provided by
the perl language.
Is there something in perl for this?

Thanks a lot!,
Federico
 
Reply With Quote
 
 
 
 
Federico
Guest
Posts: n/a
 
      09-13-2004
sorry, I found it immediately after sending the message.
It is the "kill" function.



Federico wrote:

> Hello,
>
> I want my perl script to be able to kill a process given its pid. I
> could invoque the UNIX kill -9, but I would prefer something provided by
> the perl language.
> Is there something in perl for this?
>
> Thanks a lot!,
> Federico

 
Reply With Quote
 
 
 
 
Peter Sundstrom
Guest
Posts: n/a
 
      09-14-2004

"Federico" <> wrote in message
news:ci48s9$og6$...
> Federico wrote:
>
> > Hello,
> >
> > I want my perl script to be able to kill a process given its pid. I
> > could invoque the UNIX kill -9, but I would prefer something provided by
> > the perl language.
> > Is there something in perl for this?

>
> sorry, I found it immediately after sending the message.
> It is the "kill" function.


Sorry, too late to earn yourself an entry in the Perl SAQ.
http://www.ginini.com/perlsaq.html


 
Reply With Quote
 
Federico
Guest
Posts: n/a
 
      09-14-2004
Peter Sundstrom wrote:

> "Federico" <> wrote in message
> news:ci48s9$og6$...
>
>>Federico wrote:
>>
>>
>>>Hello,
>>>
>>>I want my perl script to be able to kill a process given its pid. I
>>>could invoque the UNIX kill -9, but I would prefer something provided by
>>>the perl language.
>>>Is there something in perl for this?

>>
>>sorry, I found it immediately after sending the message.
>>It is the "kill" function.

>
>
> Sorry, too late to earn yourself an entry in the Perl SAQ.
> http://www.ginini.com/perlsaq.html


no problem. It's a funny page.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to get a PID of a child process from a process openden with Popen() Miki Tebeka Python 2 04-08-2011 10:35 PM
How to get a PID of a child process from a process openden with Popen() P.S. Python 0 04-08-2011 10:40 AM
Its a bird, its a plane, no ummm, its a Ruide thunk Ruby 1 03-30-2010 11:10 AM
killing a "nobody's" process and its group Federico Perl Misc 9 09-17-2004 12:55 PM
Is a win32 process running using the pid. Guy Python 0 02-03-2004 11:53 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57