killing a process using its PID

Discussion in 'Perl Misc' started by Federico, Sep 13, 2004.

  1. Federico

    Federico Guest

    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
    Federico, Sep 13, 2004
    #1
    1. Advertising

  2. Federico

    Federico Guest

    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
    Federico, Sep 13, 2004
    #2
    1. Advertising

  3. "Federico" <> wrote in message
    news:ci48s9$og6$-data.net...
    > 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
    Peter Sundstrom, Sep 14, 2004
    #3
  4. Federico

    Federico Guest

    Peter Sundstrom wrote:

    > "Federico" <> wrote in message
    > news:ci48s9$og6$-data.net...
    >
    >>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.
    Federico, Sep 14, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. P.S.
    Replies:
    0
    Views:
    310
  2. Miki Tebeka
    Replies:
    2
    Views:
    584
    Chris Angelico
    Apr 8, 2011
  3. thunk
    Replies:
    1
    Views:
    294
    thunk
    Mar 30, 2010
  4. thunk
    Replies:
    0
    Views:
    460
    thunk
    Apr 1, 2010
  5. Federico
    Replies:
    9
    Views:
    245
    Abhinav
    Sep 17, 2004
Loading...

Share This Page