Forum Moderators: coopster & phranque

Message Too Old, No Replies

Log file heaven....

         

toolman

12:24 am on Sep 1, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using this shell script (run using ye olde cron: 01 00 01 * * /xxx) to automate the end of the month routine with log files (Weblog):

#!/bin/bash
cd /home/sites/www.yomama.com/www/foo/reports/
tar cv * > reports.tar
mv reports.tar /home/sites/www.yomama.com/www/foo/archive/
rm log.agents.html
rm log.details.html
rm log.html
rm 1
rm log.keys.html
rm log.refs.html

The next step, in my opinion, is to email the archived file to myself :).

Any ideas?

Key_Master

12:50 am on Sep 1, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could send it as a file attachment to yourself. The following script could be configured to do this.

[davelozinski.com...]