On Mon, Dec 10, 2012 at 2:39 PM, Alvin Ramos wrote:
> I was curious, how could I write into the script to send me the
> information one time instead of every 5 minutes after it does find a lock?
You could touch/create a file and use the time stamp as a semaphore - if
the file is not there or ol
On 12/10/2012 04:39 PM, Rich Johnson wrote:
I am working my way through Intermediate Perl and have a question
concerning one of the exercises (It's a long-ish exercise, so I won't
bother typing it out as it's irrelevant to the question at hand). The
author's solution contains the following code:
I am working my way through Intermediate Perl and have a question
concerning one of the exercises (It's a long-ish exercise, so I won't
bother typing it out as it's irrelevant to the question at hand). The
author's solution contains the following code:
... code ...
my ($gather, $yield) = gather_mt
How about storing the date & time you have sent and email in a file then
deleting the file when you detect problem has cleared?
This way you could also add logic to send periodic alerts based on the time
John
On Mon, Dec 10, 2012 at 3:39 PM, Alvin Ramos wrote:
> I have a perl script that is
I have a perl script that is running every 5 minutes to see if the mysql server
has a locked query, once it does, it sends me an email with thread_connected
and the query. I was curious, how could I write into the script to send me the
information one time instead of every 5 minutes after it doe