Commit 8a3bc1fe authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

new script

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2677
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 9932b171
#!/bin/sh
# this is <observer_bgtwrap.sh>
# ----------------------------------------------------------------------------
# $Id: observer_bgtwrap.sh,v 1.1 2008-11-27 20:47:26 tforb Exp $
#
# Copyright (c) 2008 by Thomas Forbriger (BFO Schiltach)
#
# call twrap in true background
#
# REVISIONS and CHANGES
# 27/11/2008 V1.0 Thomas Forbriger
#
# ============================================================================
#
if test $# -lt 1
then
echo "Usage; $0 wrapper plugin [plugin ...]"
echo
echo "wrapper path to observer_twrap.sh"
echo "plugin path to observer plugin to execute"
exit 2
fi
WRAPPER=$1
shift
if test ! -x $WRAPPER
then
echo $WRAPPER is not executable!
exit 3
fi
while test -x $1
do
PLUGIN=$1
$WRAPPER $PLUGIN 2>&1 | mail -s "$(basename $0) $PLUGIN" $USER
shift
done
# ----- END OF observer_bgtwrap.sh -----
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment