"Fossies" - the Fresh Open Source Software Archive

Member "fou4s-0.16.0/examples/fou4s-crontab.workstation.monthly" (22 Mar 2009, 316 Bytes) of package /linux/privat/old/fou4s-0.16.0.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
    2 MAILTO=root
    3 PATH=/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin
    4 FOU4S=/usr/sbin/fou4s
    5 
    6 # check with buildtime option once a month for safety
    7 output=`$FOU4S -e --buildtime --quiet`
    8 if [ -n "$output" ] ; then
    9     echo "$output" # daily cron jobs are not mailed to root if exit code is 0
   10     exit 1
   11 else
   12     exit 0
   13 fi