Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Signal Capturing....

by venky4289 (Novice)
on Jul 08, 2013 at 06:29 UTC ( [id://1043043]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1043043]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found