Unix Find — Find by Modification Date and Email Listing

July 14, 2006 | In Linux, Other Tech | No Comments

#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

« Previous Page

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