"Fossies" - the Fresh Open Source Software Archive

Member "mosshe/mosshe_trimlogs" (20 Feb 2019, 244 Bytes) of package /linux/privat/old/mosshe.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    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"