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>&1 thanks 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 stuff at some point for CICADA.. not by us, but by SMSI. I'd be curious if the problems we have been seeing with triggers have been addressed in this latest build. I have noted this down for WSC to look at in the near future, but if others wanted to test this area.. it would be good to get results from different users with different platforms. To first test that triggers are working: create a file called hitLog.txt and make sure it is readable/writable by your webserver group. hitLog.txt IPDATETIME then, 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 that points 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' (in the same directory as that file) You should see a record happen every minute near exactly on the 15 second mark. The bug I am seeing on one of the machines I am working on is that no matter what I put in the scheduling.. the trigger fires exactly every second. The other possible bug has to do with enabling / disabling triggers within 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 ------------------------------------------------ VP WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] cron - curl to replace triggers.. (Bob Minor 2009)
  2. Re: [WebDNA] cron - curl to replace triggers.. (Donovan Brooke 2009)
  3. Re: [WebDNA] cron - curl to replace triggers.. (Donovan Brooke 2009)
  4. Re: [WebDNA] cron - curl to replace triggers.. (Bob Minor 2009)
  5. [WebDNA] cron - curl to replace triggers.. (Donovan Brooke 2009)
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>&1 thanks 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 stuff at some point for CICADA.. not by us, but by SMSI. I'd be curious if the problems we have been seeing with triggers have been addressed in this latest build. I have noted this down for WSC to look at in the near future, but if others wanted to test this area.. it would be good to get results from different users with different platforms. To first test that triggers are working: create a file called hitLog.txt and make sure it is readable/writable by your webserver group. hitLog.txt IPDATETIME then, 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 that points 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' (in the same directory as that file) You should see a record happen every minute near exactly on the 15 second mark. The bug I am seeing on one of the machines I am working on is that no matter what I put in the scheduling.. the trigger fires exactly every second. The other possible bug has to do with enabling / disabling triggers within 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 ------------------------------------------------ VP WebDNA Software Corporation 16192 Coastal Highway Lewes, 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)