CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [FishMonger] Limit alerts to 3 max: Edit Log



sat110
Novice

Feb 12, 2009, 9:44 AM


Views: 5309
Re: [FishMonger] Limit alerts to 3 max

Some times to test and make sure of things, I call it from the
browser, I also noticed when you move up the alert count
check code to the top, it writes (counts) every time the script
runs instead of the times it sends the email.

That can come in handy for lets say checking a page for a set
period of time depending on when and how many times a day
you call it etc.

When I first posted I needed to check for a particular string on
the page I was watching for example: 2/10/2009 and when
that that page was updated the string would be changed and I
would get a email "IF NOT FOUND" SEND EMAIL

The problem was that string would get changed whenever
minor changes were being done, thus eating up my alert count

The latest script now looks for a string and
"IF FOUND WILL" THEN SEND EMAIL

this is perfect and pretty much fool proof now, example if the
page's server is down or minor changes are updated I do not
get emailed

I look for a string like a future date 3/14/2009 and only when
found will I get emailed about the update meaning new dates
are available to me.

Although this might at a quick glance look like we went through
this before, but this new opposite function is like night and day.

I am using the orig version with eq instead of ne and it works
perfectly, Thanks to both of you, KevinR's log check code was
perfect for limiting alets.


(This post was edited by sat110 on Feb 12, 2009, 10:00 AM)


Edit Log:
Post edited by sat110 (Novice) on Feb 12, 2009, 9:48 AM
Post edited by sat110 (Novice) on Feb 12, 2009, 10:00 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives