You can add this code snippet to your script:
Code:
####### Cleanup Network Logs ######
########### Start #############
for file in `ls $NET_DIR/*.log`
do
if [ `ls -ltr $file|awk '{print $5}'` -gt 10485760 ] # 10MB
then
NEWFILE=$file.`date +%m%d%y`
cp -p $file $NEWFILE
cp /dev/null $file
echo "Log File Moved: $file"
gzip $NEWFILE
find $NET_DIR -name "*.gz" -mtime +60 -exec rm {} \; 2>/dev/null
fi
done
"The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb