Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: sending signal to self with kill on windows (updated);

by BrowserUk (Pope)
on Dec 30, 2012 at 05:54 UTC ( #1010893=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\test>start /b perl -E"say $$; sleep 10000"
    
    ...
    C:\test>perl -E"kill 21, $$ or say $^E; say 'ending';"
    The parameter is incorrect
    ending
    
  2. or download this
    C:\test>perl -wE"$SIG{BREAK}=sub{ say 'BREAKing' }; &{$SIG{BREAK}}; sa
    +y 'ending'; "
    BREAKing
    ending
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010893]
help
Chatterbox?
[marto]: Corion crazy busy at the moment, with work (and a tpue), the kids and some external factors
[marto]: hopefully everything is good with you
[Corion]: marto: Yes, everything is still as crazy here, but I'm somewhat more calm about it - the one week in the sun certainly helped ;)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2017-02-24 09:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (353 votes). Check out past polls.