stta/stta/tmp/t/tarantella/monitor.sh
2021-10-01 20:35:43 +01:00

21 lines
325 B
Bash
Executable File

#!/bin/sh
# Runner to call TTA Perl Montitor
USAGE="monitor.sh [Task: auto | task ] ";
if [ $1 ] ; then
TASK=$1
else
echo "$USAGE";
exit 2
fi
TTAmonPath=/usr/local/webmin-*/tarantella
TTAmonCMD=monitor.pl
# move to TTAmonPath otherwise libs.pl will be not loaded
cd $TTAmonPath
exec ./$TTAmonCMD $TASK