Deleted Added
full compact
periodic.sh (42152) periodic.sh (42239)
1#!/bin/sh -
2#
1#!/bin/sh -
2#
3# $Id: periodic.sh,v 1.5 1997/08/19 16:49:35 pst Exp $
3# $Id: periodic.sh,v 1.6 1998/12/29 22:48:54 hoek Exp $
4#
5# Run nightly periodic scripts
6#
7# usage: periodic { daily | weekly | monthly } - run standard periodic scripts
8# periodic /absolute/path/to/directory - run periodic scripts in dir
9#
10
11usage () {

--- 31 unchanged lines hidden (view full) ---

43 echo "$0: $dir not found" 1>&2
44 exit 1
45 fi
46 done
47
48 dirlist="$*"
49fi
50
4#
5# Run nightly periodic scripts
6#
7# usage: periodic { daily | weekly | monthly } - run standard periodic scripts
8# periodic /absolute/path/to/directory - run periodic scripts in dir
9#
10
11usage () {

--- 31 unchanged lines hidden (view full) ---

43 echo "$0: $dir not found" 1>&2
44 exit 1
45 fi
46 done
47
48 dirlist="$*"
49fi
50
51host=`hostname -s`
51host=`hostname`
52echo "Subject: $host $run run output"
53
54# Execute each executable file in the directory list. If the x bit is not
55# set, assume the user didn't really want us to muck with it (it's a
56# README file or has been disabled).
57
58for dir in $dirlist ; do
59 for file in $dir/* ; do
60 if [ -x $file -a ! -d $file ] ; then
61 $file
62 fi
63 done
64done
52echo "Subject: $host $run run output"
53
54# Execute each executable file in the directory list. If the x bit is not
55# set, assume the user didn't really want us to muck with it (it's a
56# README file or has been disabled).
57
58for dir in $dirlist ; do
59 for file in $dir/* ; do
60 if [ -x $file -a ! -d $file ] ; then
61 $file
62 fi
63 done
64done