Lines Matching +full:no +full:- +full:output
1 #!/bin/sh -
6 # usage: periodic { daily | weekly | monthly | security } - run standard scripts
7 # periodic /absolute/path/to/directory - run periodic scripts in dir
18 # Where's our output going ?
19 eval output=\$${1##*/}_output
20 case "$output" in
21 /*) pipe="cat >>$output";;
23 *) pipe="mail -E -s '$host ${2}${2:+ }${1##*/} run output' $output";;
28 if [ $# -lt 1 ] ; then
34 if [ -r /etc/defaults/periodic.conf ]; then
55 lockf -s -t 0 "${lockfile}" /bin/sh $0 LOCKED "$arg"
76 if [ $# -ne 2 ]; then
82 if [ -z "$PERIODIC_ANTICONGESTION_FILE" ] ; then
83 export PERIODIC_ANTICONGESTION_FILE=`mktemp ${TMPDIR:-/tmp}/periodic.anticongestion.XXXXXXXXXX`
86 # We might be in a recursive invocation; let the top-level invocation
88 remove_periodic_anticongestion_file=no
90 if [ -t 0 ]; then
93 tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX`
101 success=YES info=YES badconfig=NO empty_output=YES # Defaults when ${run}_* aren't YES/NO
105 [Nn][Oo]) eval $var=NO;;
110 /*) if [ -d "$arg" ]; then
119 [ -d $top/$arg ] && dirlist="$dirlist $top/$arg"
129 if [ -x $file -a ! -d $file ]; then
130 output=TRUE
134 if [ -s $tmp_output ]; then
136 0) [ $success = NO ] && output=FALSE;;
137 1) [ $info = NO ] && output=FALSE;;
138 2) [ $badconfig = NO ] && output=FALSE;;
140 [ $output = TRUE ] && { cat $tmp_output; empty=FALSE; }
149 echo "No output from the $processed file$plural processed"
153 echo "-- End of $arg output --"
157 rm -f $tmp_output
159 rm -f $PERIODIC_ANTICONGESTION_FILE