Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: How to pass CTRL-C to child script only

by spazm (Monk)
on Aug 24, 2010 at 17:53 UTC ( #856995=note: print w/ replies, xml ) Need Help??


in reply to Re^5: How to pass CTRL-C to child script only
in thread How to pass CTRL-C to child script only

I'll explain further if you have any other questions. Please let me know if this works for you.

The above is tested, working code. It contains an abbreviation of your autoLogon code that I hope is similar to your actual semantics.

Some modules to consider Term::Readkey or IO::Prompter, to handle this for you.

Another option is to put the terminal into raw mode and read characters one at a time. Abort upon finding the key currently bound to sig-int (ctrl-c). blech, what a pain that would be.


Comment on Re^6: How to pass CTRL-C to child script only

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://856995]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-10-02 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls