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
Powered by WordPress
RSS Feed - Syndicate this Site
and comments feed



