Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Signal Capturing....

by sundialsvc4 (Abbot)
on Jul 08, 2013 at 14:19 UTC ( #1043130=note: print w/replies, xml ) Need Help??

in reply to Signal Capturing....

Definitely do a “Super Search” on this one, because it is a frequently asked question.   There are at least three aspects to this FAQ:

  1. How to go about receiving the signal, especially in Perl’s version of multi-threading.
  2. How to cause the program to stop, not “in its trac...” but, “at an appropriate stopping-point, as soon as possible.”  
  3. How to efficiently wait for the signal to resume.
... and ... heh ... how to do that and debug that without losing your remaining hair in the process.

Start searching here.

Replies are listed 'Best First'.
Re^2: Signal Capturing....
by BrowserUk (Pope) on Jul 08, 2013 at 14:40 UTC
    1. How will searching Perlmonks find a solution to a Tcl question?
    2. WTF has that got to do with "Perl’s version of multi-threading"?

      If type ^C or ^break on any of my threaded perl scripts, they abort immediately just like any non-threaded script.

    You'll be familiar with the abbreviation GIGO; with you its more GOGOGOGOGOGO....

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043130]
[Lady_Aleena]: Hello. Why is this dying at -exec: my @music_times = qx(find ~/Music/Albums/ -type f -iname '*.mp3' -exec {} \;); with the error find: missing argument to `-exec'
[Lady_Aleena]: ACK! my @music_times = qx(find ~/Music/Albums/ -type f -iname '*.mp3' -exec mp3info -p "%S\n" {} \;);
[marioroy]: :)
marioroy adds oatmeal cookies to the platter on the sideboard.
marioroy adds oatmeal raisin cookies to the platter on the sideboard.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-04-23 09:08 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (430 votes). Check out past polls.