Python script repeated auto start up.

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-04-25T15:15:22Z Indexed on 2010/04/25 15:23 UTC
Read the original article Hit count: 696

Filed under:
|
|

I am designing a python web app, where people can have an email sent to them on a particular day. So a user puts in his emai and date in a form and it gets stored in my database.

My script would then search through the database looking for all records of todays date, retrive the email, sends them out and deletes the entry from the table.

Is it possible to have a setup, where the script starts up automatically at a give time, say 1 pm everyday, sends out the email and then quits? If I have a continuously running script, i might go over the CPU limit of my shared web hosting. Or is the effect negligible?

Ali

© Stack Overflow or respective owner

Related posts about python

Related posts about email