in reply to Prevent Perl Command Line Interpreter Popup From Appearing On Perl Crash
There is the concept of "Defensive Programming" that you really need to think about here. Why are your scripts cratering? What can you do to code around those conditions? Why aren't you?! Shooting the Messenger is very short sighted....
That said, If it were I in this pickle, I'd start by analyzing the kinds of 'Perl crashes' that cause the flower-box to appear and see if there is a common thread that I can check for. Ideally, you will discover something that you can set a %SIG trap for, and bail out gracefully once you receive the signal. This will require changes in the scripts you are running under the service.
A more heavy weight solution is to install a Monitor Program (I am very fond of Nagios) and have it check your problem-children's metrics (say CPU time consumed, memory foot-print, and log-file size). If the appropriate metric stabilizes for too long (and that's a judgment decision you have to make), have the Monitor kill() the process.
I really can't over-emphasize how dumb/dangerous the idea of disabling the pop-up on crash is.
Consider the following scenario (names changed for obvious reasons):
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Prevent Perl Command Line Interpreter Popup From Appearing On Perl Crash
by BrowserUk (Patriarch) on Dec 06, 2006 at 18:17 UTC | |
by WAmaro (Acolyte) on Dec 06, 2006 at 19:25 UTC |