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" <[EMAIL PROTECTED]>
To: "Rolf Hanson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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
> > [EMAIL PROTECTED]
> > 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
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to