Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Email Thresholding

by bitingduck (Chaplain)
on Apr 02, 2015 at 15:00 UTC ( [id://1122267]=note: print w/replies, xml ) Need Help??


in reply to Email Thresholding

If it starts and stops every few minutes (e.g. as a cron job) rather than running in the background, the easiest way to keep track is probably to write a file somewhere that contains any relevant data you care to keep track of. If you just want to know when the last time you sent an email, you might be able to use the last-modified date of the file (and just "touch" it each time you send an email). If you want to store more information, you can store the time and any diagnostic information (e.g. last event time). Be sure to pay attention to what the running environment is- background jobs often run in a different environment than the user that created them and you need to specify full pathnames for files.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1122267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2024-04-23 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found