Trigger action Quandry
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 40479
interpreted = N
texte = I have a page that when hit by a human browser it works fine, but if its hitwith a trigger it doesn't. Specifically I run the script every hour, if thehour is divisible by 2 then it runs the containing code if not then itshould not. Instead it runs every hour regartless. Here is the code from thepage.Database Backup [math show=f]filecount=0[/math] [text secure=F]dayfolder=[date %a][/text] [math show=f]hour=[date %H][/math][showif [hour]\2][ListFiles path=../databases/][hideif [filename]^(][showif [filename]^.db][filename]
[math show=T]filecount=filecount+1[/math][text secure=F&show=T]backupfile[filecount]=[filename][/text][hideif [filename]^archives][commitdatabase../databases/[filename]][/hideif] [/showif][/hideif][/Listfiles][dos]cd ..\..\..\Medlawplus.com\wwwroot\databases\mkdir D:\backup\[dayfolder]\[date %H]mkdir D:\backup\[dayfolder]\[date %H]\[Date %y-%m-%d][loop start=1&end=[filecount]]copy[interpret][backupfile[index]][/interpret] D:\backup\[dayfolder]\[date%H]\[interpret][backupfile[index]][/interpret][/loop][/dos][appendfile action.log][date] [time] [date %H][math]{[date]}[/math].[math]{[time]}[/math] backup databases[loopstart=1&end=[filecount]] copy [interpret][backupfile[index]][/interpret]D:\backup\[dayfolder]\[date%H]\[interpret][backupfile[index]][/interpret][/loop][/appendfile][/showif]Robert MinorDirector of Internet Services------------------------------------------------------------Cybermill Communicationshttp://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development andhosting services on Macintosh, Windows NT, Unix, and AS/400.All your websites are belong to us!-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I have a page that when hit by a human browser it works fine, but if its hitwith a trigger it doesn't. Specifically I run the script every hour, if thehour is divisible by 2 then it runs the containing code if not then itshould not. Instead it runs every hour regartless. Here is the code from thepage.Database backup [math show=f]filecount=0[/math] [text secure=F]dayfolder=[date %a][/text] [math show=f]hour=[date %H][/math][showif [hour]\2][ListFiles path=../databases/][hideif [filename]^(][showif [filename]^.db][filename]
[math show=T]filecount=filecount+1[/math][text secure=F&show=T]backupfile[filecount]=[filename][/text][hideif [filename]^archives][commitdatabase../databases/[filename]][/hideif] [/showif][/hideif][/Listfiles][DOS]cd ..\..\..\Medlawplus.com\wwwroot\databases\mkdir D:\backup\[dayfolder]\[date %H]mkdir D:\backup\[dayfolder]\[date %H]\[Date %y-%m-%d][loop start=1&end=[filecount]]copy[interpret][backupfile[index]][/interpret] D:\backup\[dayfolder]\[date%H]\[interpret][backupfile[index]][/interpret][/loop][/dos][appendfile action.log][date] [time] [date %H][math]{[date]}[/math].[math]{[time]}[/math] backup databases[loopstart=1&end=[filecount]] copy [interpret][backupfile[index]][/interpret]D:\backup\[dayfolder]\[date%H]\[interpret][backupfile[index]][/interpret][/loop][/appendfile][/showif]Robert MinorDirector of Internet Services------------------------------------------------------------Cybermill Communicationshttp://www.cybermill.com http://www.merchantmaker.comProviding Ecommerce and interactive website development andhosting services on Macintosh, Windows NT, Unix, and AS/400.All your websites are belong to us!-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Bob Minor
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:
Re1000001: Setting up shop (1997)
GuestBook example (1997)
searchable list archive (1997)
All choices on IE different than Netscape (1997)
Req: Array Tags Explained, simple and clear (2004)
Webcat2, WebCommerce, Mod 10 etc. (1997)
More on screen refresh causing duplicate order entries (1998)
WebCat b13 CGI -shownext- (1997)
RE: [sendmail]- bcc? (1998)
showif and cart (1997)
Slightly off-topic hits to purchase ratio? (1999)
'does not contain' operator needed ... (1997)
RE: Credit Card Checksum (1997)
WebCat2b15MacPlugin - showing [math] (1997)
RE: counters from other site? (1998)
Multiple Stores and WebCatalog Prefs (1997)
PR: WebCatalog Affiliates Program Announced -- Share the (2000)
date formatting for CC card expiration date check (1998)
WebCat editing, SiteGuard & SiteEdit (1997)
HTML text cannot be copied to clipboard? (1999)