Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/ksh
#***************************************************************************
#* Created by: Scott Brewster *
#* Date: October 2006 *
#* Location: TBD *
#* *
#* Description *
#* ----------------------------------------------------------------------- *
#* Read the rotatelogs.conf file and rotate that file. Keep 13 copies *
#* *
#* Date Modified By Reason for modification *
#* ----------- ---------------- ---------------------------------------- *
#* 15-Oct-2006 Scott Brewster Created *
#* *
#***************************************************************************
CONFIG=/usr/admin/bin/rotatelogs.conf #location of configuration file
GZIP=/usr/bin/gzip
#
# Check for config file
#
if [ ! -f $CONFIG ] ; then
echo "\nError $0: no config file found.\n"
echo "Create: /usr/admin/bin/rotatelogs.conf\n\n"
echo "The file format is:\n\n location, pipe symbol, log file name\n\nIE\t /var/log/|ssh.log\n\n"
exit
fi
#
# Parse config file and rotate logs
#
for NAME in `cat $CONFIG`
do
DIR="`echo $NAME | cut -d'|' -f1`"
LOG="`echo $NAME | cut -d'|' -f2`"
integer COUNT=12
while [ $COUNT -ge 1 ]
do
if [ -f $DIR$LOG.gz.$COUNT ]
then
integer TMP=0
(( TMP = COUNT + 1 ))
mv $DIR$LOG.gz.$COUNT $DIR$LOG.gz.$TMP
fi
(( COUNT = COUNT - 1 ))
done
$GZIP -S .gz.1 -9 $DIR$LOG
touch $DIR$LOG
done
/home/scbrewst/logs/|sdb.log
/home/scbrewst/logs/security/|sbrews.log