ok, i solved this one on my own. here's my solution.

i created a file named "client_sites" that lists every client's domain:

...
www_websanity_org
www_wildstonemedia_org
www_wpc-stl_org
... and so on

then i created a script, "mv_old_log_files", that looks like this:

for i in $(cat client_sites)
do 
  find /var/log/httpd/$i* -maxdepth 1 -mtime +1 -exec mv 
{} /var/archives_pre/$i \; 
done

that works!

once again, the find command saves the day.

tks, scott! why thank *you*, scott! no, the pleasure's all mine, scott! well, 
you're most certainly welcome, scott!

scott

-- 
R. Scott Granneman
[EMAIL PROTECTED] ~ www.granneman.com
Full list of publications: http://www.granneman.com/publications
  My new book on Firefox: Don't Click on the Blue E!
    Info at: http://www.oreilly.com/catalog/bluee/
  Read the Open Source Blog: http://opensource.weblogsinc.com
  Join GranneNotes! Information at www.granneman.com

"Bud Light and a conference call, ain't nothing better!"
      ---Snake
 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to