find html files modified in last 7 days

#!/bin/csh
#change to working directory
cd /Library/WebServer/Documents/website

#find html files modified in last 7 days in web directory
# pipe output to text file
find . -name “*.html” -mtime -7 > /Users/gare/files_modified7days

#Attach and Email
(cat /Users/gare/files_modified7days.EmailBody.txt; uuencode /Users/gare/files_m
odified7days /Users/gare/files_modified7days.txt ) | mail -b emailaddy2@domain.com
-s “Weekly Web Page Access” emailaddress@domain.com

This entry was posted in Linux, WebTechnology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>