Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Dec 30, 2012 at 05:54 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1010893]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-25 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found