#!/bin/bash
BASEDIR=/var/lib/suckmt                 # base directory for scripts
. ${BASEDIR}/NewsParams

echo "    NEWS Retrieve START `date`" >> ${BASEDIR}/transfer.log

${TESTHOST} ${REMOTE_HOST} -s

if [ $? -ne 0 ]; then
	echo "Remote host not responding" >> ${BASEDIR}/transfer.log
	echo "Remote host not responding"
else
	# download messages
	${SUCKMT} -q -i /etc/suckmt/suckmt.ini
fi
echo "    NEWS Retrieve STOP  `date`" >> ${BASEDIR}/transfer.log
