Re: Mime::Lite sending email

2012-12-10 Thread Andy Bach
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

Re: Intermediate Perl - Chapter 7 Exercise 1 Question

2012-12-10 Thread Uri Guttman
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:

Intermediate Perl - Chapter 7 Exercise 1 Question

2012-12-10 Thread Rich Johnson
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

Re: Mime::Lite sending email

2012-12-10 Thread John Mason
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

Mime::Lite sending email

2012-12-10 Thread Alvin Ramos
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