24/7 U.S. Support – 877-595-4482
2011-08-04 1:07 pm
I checked and mutt does not seemed to be installed on the servers, so this is why you're receiving an error message.
I tested a few options, and I was able to get the following cron command to work:
<div class="code_block">for i in `ls /home/user/access-logs/`; do mail -s "$i" "email@example.com" < /home/user/access-logs/$i;done;</div>
What this does is sends you a separate email for each file in the access-logs directory. The subject of the email is the log file name, and the body is the actual log.
I hope this helps!
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|