Unix Find — Find by Modification Date and Email Listing
#change to working directory
cd /Library/WebServer/Documents/mywebsite
#find files modified in last 7 days in mywebsite directory
# pipe output to text file
find . -name “*.html” -mtime -7 > /Users/gare/Outputfilename
# Grab some Body Text; Attach the Listing; and Email
(cat /Users/gare/Acollege_files_modified7days.EmailBody.txt; uuencode /Users/gare/Outputfilename /Users/gare/files_modified7days.txt ) | mail -b bccaddress@antioch-college.edu -s “Weekly Web Page Access” gcalhoun12@antioch-college.edu
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



