1 #!/bin/bash 2 3 HOSTNAME=$( hostname ) 4 WWWDIR=$( cat /usr/local/lib/mosshe/mosshe | awk -F '=' '/^WWWDIR=/ {print $2}' ) 5 if [ -f "$WWWDIR/please_trim_the_logs" ]; then rm -f "$WWWDIR/please_trim_the_logs"; fi 6 date > "$WWWDIR/please_trim_the_logs"