diff options
author | Tar Committer <tar@ocjtech.us> | 1999-06-20 23:17:14 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 1999-06-20 23:17:14 +0000 |
commit | 8c5c1d20fc744c7e60a6197fc397b44d424c65b8 (patch) | |
tree | 4b32e7ecf45efe9619d3909df3a943edb86f7027 /bin/run-me | |
download | rancid-8c5c1d20fc744c7e60a6197fc397b44d424c65b8.tar.gz rancid-8c5c1d20fc744c7e60a6197fc397b44d424c65b8.tar.xz rancid-8c5c1d20fc744c7e60a6197fc397b44d424c65b8.zip |
Imported from rancid-1.0.tar.gz.rancid-1.0
Diffstat (limited to 'bin/run-me')
-rwxr-xr-x | bin/run-me | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bin/run-me b/bin/run-me new file mode 100755 index 0000000..b17d850 --- /dev/null +++ b/bin/run-me @@ -0,0 +1,35 @@ +#!/bin/sh + +ENVFILE="`dirname $0`/env" + +. $ENVFILE + +if [ $# -lt 1 ]; then + DOME="$LIST_OF_GROUPS" +else + DOME="$*" +fi + +for GROUP in $DOME +do + + LOCKFILE=/tmp/.$GROUP.run.lock + + ( + echo starting: `date` + echo + + if [ -f $LOCKFILE ] + then + echo hourly cisco diffs failed: $LOCKFILE exists + /bin/ls -l $LOCKFILE + else + /usr/bin/touch $LOCKFILE + control_rancid $GROUP + /bin/rm -f $LOCKFILE + fi + + echo + echo ending: `date` + ) >$BASEDIR/logs/$GROUP.`date +%Y%m%d.%H%M%S` 2>&1 +done |