From: Rolf H. <ro...@gi...> - 2002-05-20 17:04:04
|
Hi, I need to schedule a task that selects a bunch of email addresses from a database and then sends a specific email to them once a day, at 4 am. I looked at TaskKit, and i'm not smart enough to figure out how it works, and it looks like it might be overkill anyway, since I only am scheduling 1 function. The system I am most used to using, aolserver, all I did was: ns_scheduleproc timeinterval procname Is there anyway of doing this in webware so that it is that easy? I just need to run mailExpiredUsers() once a day early in the morning. Thanks, Rolf ps I started looking at python's built in "sched" just a moment ago |
From: Ian B. <ia...@co...> - 2002-05-20 18:08:58
|
You could try something like making a servlet that does this, and then putting in a cron job that does something like "wget http://localhost/WK/EmailTask" at 4am. You can check that self.request().environ().get("REMOTE_ADDR") == "127.0.0.1" for security. On Mon, 2002-05-20 at 12:03, Rolf Hanson wrote: > Hi, > I need to schedule a task that selects a bunch of email addresses from a > database and then sends a specific email to them once a day, at 4 am. I > looked at TaskKit, and i'm not smart enough to figure out how it works, > and it looks like it might be overkill anyway, since I only am > scheduling 1 function. > > The system I am most used to using, aolserver, all I did was: > > ns_scheduleproc timeinterval procname > > Is there anyway of doing this in webware so that it is that easy? I just > need to run mailExpiredUsers() once a day early in the morning. > > Thanks, > > Rolf > > ps I started looking at python's built in "sched" just a moment ago > > > _______________________________________________________________ > Hundreds of nodes, one monster rendering program. > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss > |
From: Bill E. <bi...@rf...> - 2002-05-20 18:18:14
|
I was going to ask about signal structure at some point, since signals & alarms need to be dispatched from the top thread. Anyone have thoughts of a decent structrure to handle this? Ian Bicking wrote: > You could try something like making a servlet that does this, and then > putting in a cron job that does something like > "wget http://localhost/WK/EmailTask" at 4am. You can check that > self.request().environ().get("REMOTE_ADDR") == "127.0.0.1" for security. > > On Mon, 2002-05-20 at 12:03, Rolf Hanson wrote: > >>Hi, >>I need to schedule a task that selects a bunch of email addresses from a >>database and then sends a specific email to them once a day, at 4 am. I >>looked at TaskKit, and i'm not smart enough to figure out how it works, >>and it looks like it might be overkill anyway, since I only am >>scheduling 1 function. >> >>The system I am most used to using, aolserver, all I did was: >> >>ns_scheduleproc timeinterval procname >> >>Is there anyway of doing this in webware so that it is that easy? I just >>need to run mailExpiredUsers() once a day early in the morning. >> >>Thanks, >> >>Rolf >> >>ps I started looking at python's built in "sched" just a moment ago >> >> >>_______________________________________________________________ >>Hundreds of nodes, one monster rendering program. >>Now that's a super model! Visit http://clustering.foundries.sf.net/ >> >>_______________________________________________ >>Webware-discuss mailing list >>Web...@li... >>https://lists.sourceforge.net/lists/listinfo/webware-discuss >> > > > > > _______________________________________________________________ > Hundreds of nodes, one monster rendering program. > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss -- Bill Eldridge Radio Free Asia bi...@rf... |
From: Aaron H. <aa...@me...> - 2002-05-20 18:37:31
|
Take a look at TaskKit again, I used it one and it was not too painful: But anyway this is Python, so just write your code as a module and you can either execute the module directly from cron and then import the module into webware. -Aaron ----- Original Message ----- From: "Ian Bicking" <ia...@co...> To: "Rolf Hanson" <ro...@gi...> Cc: <web...@li...> Sent: Monday, May 20, 2002 2:08 PM Subject: Re: [Webware-discuss] easiest scheduled task? > You could try something like making a servlet that does this, and then > putting in a cron job that does something like > "wget http://localhost/WK/EmailTask" at 4am. You can check that > self.request().environ().get("REMOTE_ADDR") == "127.0.0.1" for security. > > On Mon, 2002-05-20 at 12:03, Rolf Hanson wrote: > > Hi, > > I need to schedule a task that selects a bunch of email addresses from a > > database and then sends a specific email to them once a day, at 4 am. I > > looked at TaskKit, and i'm not smart enough to figure out how it works, > > and it looks like it might be overkill anyway, since I only am > > scheduling 1 function. > > > > The system I am most used to using, aolserver, all I did was: > > > > ns_scheduleproc timeinterval procname > > > > Is there anyway of doing this in webware so that it is that easy? I just > > need to run mailExpiredUsers() once a day early in the morning. > > > > Thanks, > > > > Rolf > > > > ps I started looking at python's built in "sched" just a moment ago > > > > > > _______________________________________________________________ > > Hundreds of nodes, one monster rendering program. > > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > > > _______________________________________________ > > Webware-discuss mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/webware-discuss > > > > > > _______________________________________________________________ > Hundreds of nodes, one monster rendering program. > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss > |