2 ################################################################################
5 # Description: Functions for handling log files
6 # Author: Andrew@DeFaria.com
7 # Created: Thu Dec 9 10:05:09 PST 1999
11 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
13 ################################################################################
15 # roll_log: This function will roll a logfile
18 # $1 Directory for log file
20 # $3 Name of backup log file
21 # $4 What activity is being logged
24 backup_logfile=$dir/$3
27 if [ -f "$logfile" ]; then
28 cat $logfile >> $backup_logfile
29 print "$what log ($(hostname)) started on $(date)" > $logfile