Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emailing a file using cron

Status
Not open for further replies.

nerbonne

Technical User
Dec 11, 2006
99
US
I would like to email a certain log file to myself on a daily basis. Can someone explain to me how to do this on Fedora Core 1 running apache and Plesk 7. Thanks.
 
This is usually already setup on fedora. A program called logwatch sends a summary of your logs every morning. If you arn not getting it, you may have to look at /etc/aliases in a text editor. Near the bottom you will see a line like this:

#root: marc

Uncomment it and change marc to your username or email address. So now it will look like this:

root: nerbonne

Now you need to run 'newaliases' from the command line. This is not an apache issue so if this doesn't answer your question, you may want to post this in the linux (server) forum forum54 for help with cron stuff or the sendmail forum forum14 if the mail isn't being sent.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top