Re: user flush db

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46043
interpreted = N
texte = Must be Beer O'Clock over there isn't it ? On Friday, December 6, 2002, at 03:20 PM, Alain Russell wrote:> Now, just in case your users do not have all their .db files in one > directory and you quickly want to flush an entire virtual host .. > > This might help: > Copy the code below into a file in the root of the virtual host, the > file > will create an include file, loop through the directories in the > virtual > host and close the databases (.db files), then deletes the include > file it > wrote (to keep everything clean). > > Alain > ---------------------- > > > > [!] ## Write the loop file which explores the folders --[/!] > [writefile file=flush_db_loop.inc] > [raw] > [listfiles path=[fullpath]] > [showif [filename]^.db] > Closing: [fullpath]
> [closedatabase db=[fullpath]] > [/showif] > > [showif [isfolder]=T] > [include file=flush_db_loop.inc] > [/showif] > [/listfiles] > [/raw] > [/writefile] > > [!] ## Loop through the directories and flush the databases > --[/!] > [listfiles path=/] > [showif [filename]^.db] > Closing: [fullpath]
> [closedatabase db=[fullpath]] > [/showif] > > [showif [isfolder]=T] > [include file=flush_db_loop.inc] > [/showif] > [/listfiles] > > [!] ## Delete the loop file we created at the start --[/!] > [deletefile file=flush_db_loop.inc] > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ > > RegardsStuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: user flush db (Kalin Mintchev 2002)
  2. Re: user flush db (Stuart Tremain 2002)
  3. Re: user flush db (Alain Russell 2002)
  4. Re: user flush db (Kalin Mintchev 2002)
  5. Re: user flush db (Gary Krockover 2002)
  6. Re: user flush db (Kalin Mintchev 2002)
  7. Re: user flush db (Alain Russell 2002)
  8. Re: user flush db (Donovan Brooke 2002)
  9. Re: user flush db (Alain Russell 2002)
  10. Re: user flush db (Michael Quattrone 2002)
  11. Re: user flush db (Donovan Brooke 2002)
  12. Re: user flush db (Gary Krockover 2002)
  13. Re: user flush db (Gary Krockover 2002)
  14. Re: user flush db (Alain Russell 2002)
  15. Re: user flush db (Donovan Brooke 2002)
  16. Re: user flush db (Alain Russell 2002)
  17. user flush db (Kalin Mintchev 2002)
Must be Beer O'Clock over there isn't it ? On Friday, December 6, 2002, at 03:20 PM, Alain Russell wrote:> Now, just in case your users do not have all their .db files in one > directory and you quickly want to flush an entire virtual host .. > > This might help: > Copy the code below into a file in the root of the virtual host, the > file > will create an include file, loop through the directories in the > virtual > host and close the databases (.db files), then deletes the include > file it > wrote (to keep everything clean). > > Alain > ---------------------- > > > > [!] ## Write the loop file which explores the folders --[/!] > [writefile file=flush_db_loop.inc] > [raw] > [listfiles path=[fullpath]] > [showif [filename]^.db] > Closing: [fullpath]
> [closedatabase db=[fullpath]] > [/showif] > > [showif [isfolder]=T] > [include file=flush_db_loop.inc] > [/showif] > [/listfiles] > [/raw] > [/writefile] > > [!] ## Loop through the directories and flush the databases > --[/!] > [listfiles path=/] > [showif [filename]^.db] > Closing: [fullpath]
> [closedatabase db=[fullpath]] > [/showif] > > [showif [isfolder]=T] > [include file=flush_db_loop.inc] > [/showif] > [/listfiles] > > [!] ## Delete the loop file we created at the start --[/!] > [deletefile file=flush_db_loop.inc] > > > ------------------------------------------------------------- > 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://webdna.smithmicro.com/ > > RegardsStuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837------------------------------------------------------------- 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://webdna.smithmicro.com/ Stuart Tremain

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:

Numbers only code (2000) File not found error message (1998) PIXO support (1997) supressing math results (1997) Explorer 3.0/ Access Denied! (1997) Emailer setup (1997) Re:PCS Customer submissions ? (1997) Add to Cart & List of Products (1997) RE: [WebDNA] DNA suffix (2008) how is this possible (2000) WebCat2 beta FTP site (1997) japanese characters (1997) RE: Automatic thumbnail images (1998) NT or Mac (1998) Using Grep to Format Text (2001) Question about replacing words (1998) Maybe minor bug report (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Secure Cookies (2008) docs for WebCatalog2 (1997)