venky4289 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have a TCL and PERL script, which i need to start the PERL script from TCL script and i need to stop the perl script whenever TCL script sends a interrupt signal to PERL script.

I am new to PERL script, Can anyone help me to know how to trap a signal in perl and how to send a signal from TCL script to PERL script. Thanks in Advance.

Replies are listed 'Best First'.
Re: Signal Capturing....
by BrowserUk (Patriarch) on Jul 08, 2013 at 14:33 UTC

    Once you've started your Perl script from Tcl, all you need to do is send it any one of several signals -- including, but not limited to SIGBREAK SIGINT SIGQUIT SIGTERM -- that will cause it to die immediately*.

    So, now all you need to know is how to send signals from Tcl -- which is a question for a Tcl forum not a Perl forum.

    (*Unless the author of the Perl script has decided to trap that signal.)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re: Signal Capturing....
by Anonymous Monk on Jul 08, 2013 at 07:43 UTC
A reply falls below the community's threshold of quality. You may see it by logging in.