Re: [WebDNA] cron - curl to replace triggers..
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102261
interpreted = N
texte = Bob Minor wrote:> Create a script called> > every5minutes.sh put it somewheres, I put my in /srv/scripts/> > in it I put the curls I want to fire> curl http://yourdomain.com/admin/reports/update_stock.tpl -d emailit=T &> > then your crontab should have> 5 * * * * /srv/scripts/every5minutes.sh > /dev/null 2>&1thanks Bob!.. the two examples are better than 1 I think.Yours is calling a shell script.What does the -d and emailit=T do?btw, it appears there was some work done in trigger stuffat some point for CICADA.. not by us, but by SMSI. I'dbe curious if the problems we have been seeing with triggershave been addressed in this latest build. I have notedthis down for WSC to look at in the near future, butif others wanted to test this area.. it would be goodto get results from different users with differentplatforms.To first test that triggers are working:create a file called hitLog.txt and make sure itis readable/writable by your webserver group.hitLog.txtIP
DATETIMEthen, create a 'test.html' file that includes the WebDNA:[appendfile file=hitLog.txt][ipaddress] [date] [time][/appendfile]then, in your trigger admin, enable a trigger thatpoints to that file with the timing/schedule:* * * * * 15(fires everytime the second hand equals 15)Then, in a terminal, do a 'tail -f hitLog.txt' (inthe same directory as that file)You should see a record happen every minute near exactly on the15 second mark.The bug I am seeing on one of the machines I am working onis that no matter what I put in the scheduling.. the triggerfires exactly every second.The other possible bug has to do with enabling / disabling triggerswithin the ISP SandBox admin. That would be a second test to perform!..but for now, if people wanted to report back with this test,it would be helpful feedback for the development team.Donovan-- Donovan D. Brooke PH: 1 (608) 770-3822------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Associated Messages, from the most recent to the oldest:
Bob Minor wrote:> Create a script called> > every5minutes.sh put it somewheres, I put my in /srv/scripts/> > in it I put the curls I want to fire> curl http://yourdomain.com/admin/reports/update_stock.tpl -d emailit=T &> > then your crontab should have> 5 * * * * /srv/scripts/every5minutes.sh > /dev/null 2>&1thanks Bob!.. the two examples are better than 1 I think.Yours is calling a shell script.What does the -d and emailit=T do?btw, it appears there was some work done in trigger stuffat some point for CICADA.. not by us, but by SMSI. I'dbe curious if the problems we have been seeing with triggershave been addressed in this latest build. I have notedthis down for WSC to look at in the near future, butif others wanted to test this area.. it would be goodto get results from different users with differentplatforms.To first test that triggers are working:create a file called hitLog.txt and make sure itis readable/writable by your webserver group.hitLog.txtIPDATETIMEthen, create a 'test.html' file that includes the WebDNA:[appendfile file=hitLog.txt][ipaddress] [date] [time][/appendfile]then, in your trigger admin, enable a trigger thatpoints to that file with the timing/schedule:* * * * * 15(fires everytime the second hand equals 15)Then, in a terminal, do a 'tail -f hitLog.txt' (inthe same directory as that file)You should see a record happen every minute near exactly on the15 second mark.The bug I am seeing on one of the machines I am working onis that no matter what I put in the scheduling.. the triggerfires exactly every second.The other possible bug has to do with enabling / disabling triggerswithin the ISP SandBox admin. That would be a second test to perform!..but for now, if people wanted to report back with this test,it would be helpful feedback for the development team.Donovan-- Donovan D. Brooke PH: 1 (608) 770-3822------------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
PIXO (1997)
Download (1999)
using showpage and showcart commands (1996)
WebCatalog f2 Installation (1997)
suffix mapping for NT? (1997)
WebCat for Site Search? (1997)
Price Not Appearing (2000)
[WebDNA] Exciting news about WebDNA 8.2 (2015)
Emailer (1997)
requiring form fields? (2000)
Is the list server working? (1998)
Make sure I understand this??? (1997)
WebCat2 - Getting to the browser's username/password data (1997)
I give up!! (1997)
[WebDNA] Google Maps API Store Locator Utility Library (2013)
Help Wanted - Stowe, Vermont (1999)
orderfile headers (was: 2nd Request for help/advice (2000)
WebCat2: multiple currency support (1997)
Help needed with WebCat on Solaris (2000)
Just Testing (1997)