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

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress RSS XMLRSS Feed - Syndicate this Site and comments feed
linux GNUpowered by Apache tomcatMySQL ABPHP - The Language the Web Runs on

^Top^ Gare CalhounGare CalhounGare CalhounGare CalhounGare Calhoun