Update e-mail

This commit is contained in:
Nico Schottelius 2007-08-16 23:39:18 +02:00
parent 31b90624c8
commit 52095b7cf0
1 changed files with 15 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# Nico Schottelius <nico-linux //@// schottelius.org> # Nico Schottelius <nico-ccollect //@// schottelius.org>
# Date: 24-Jun-2006 # Date: 24-Jun-2006
# Last Modified: - # Last Modified: -
# #
@ -8,14 +8,22 @@
CCOLLECT_CONF=${CCOLLECT_CONF:-/etc/ccollect} CCOLLECT_CONF=${CCOLLECT_CONF:-/etc/ccollect}
CCOLLECT_INTERVALS="$CCOLLECT_CONF/defaults/intervals" CCOLLECT_INTERVALS="$CCOLLECT_CONF/defaults/intervals"
if [ ! -d "$CCOLLECT_INTERVALS" ]; then me="$(basename $0)"
echo "No intervals defined in $CCOLLECT_INTERVALS"
exit 23 _echo()
{
echo "$me> $@"
}
if [ ! -d "${CCOLLECT_INTERVALS}" ]; then
_echo "No intervals defined in ${CCOLLECT_INTERVALS}"
exit 1
fi fi
cd "$CCOLLECT_INTERVALS" set -e
cd "${CCOLLECT_INTERVALS}"
for interval in *; do for interval in *; do
eval int_$interval=$(cat $interval); eval int_${interval}=$(cat "${interval}");
eval echo $interval: \$int_$interval; eval echo ${interval}: \$int_${interval};
done done