This simply won't work, since cron does not deal with the response from
the TAF.

Install the cron to run every hour and process a chunk each time.

Or, if it's once a night thing, have it run every minute for the hour of
1am, and set the internal timeout in the TAF to 30 seconds or so. That
will give you 30 minutes of runtime total. You can also have the app
quit right away if it has nothing to do.

There are other ways of dealing with this as well, but you can never
except Witango to receive a response from cron it launches.

Oh, you could also chain-launch the apps by using an @URL after each
1000 records, but this is a little more risky since any problem in the
chain will stop it entirely.

Robert

-----Original Message-----
From: Fogelson, Steve [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 06, 2004 10:36 AM
To: Witango User Group (E-mail)
Subject: Witango-Talk: Cron Job

Windows 2003 Web Edition, R:Tango 5.0 062, Oterro 2.6

I wrote a taf that I want performed as a cron job. The taf reads an
email
table and sends email to each record by writing each email to the Pickup
folder in my SMTP service. I have the taf redirect after 3 minutes or a
1,000 records so the taf does not time out. 

It runs fine when I run it from a browser. It processes all the records.

When I run it as a cron job, it processes 1,000 records and then stops.
It
doesn't appear to redirect back into the program.

I am using the following code to redirect:

<@purgeresults>
<@assign request$httpHeader value="HTTP/1.0 302 Moved<@CRLF>Location:
<@var
<@var user$U_Site>$AppRootUrl><@var catsite$CGI><@var
catsite$RootPath>Cron/NewsLetterEmail.taf?CurrentCtr=<@var
request$CurrentCtr>&HTMLCounter=<@var
request$HTMLCounter>&TextCounter=<@var
request$TextCounter>&JobStartSeconds=<@var
request$JobStartSeconds><@crlf><@setcookies><@userreferencecookie><@crlf
><@c
rlf>">

Are redirects not allowed in cron jobs or am I doing something else
wrong?

Thanks

Steve Fogelson
Internet Commerce Solutions


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to