#! /bin/sh


vfd=vfd.azland.ne.jp
xport=./xport
file=./schedule.txt

while true
do
	while read time comment
	do
	now=`/bin/date "+%H:%M"`
		if [ "$now" = "$time" ]
		then
			echo $now
			message=$comment
		fi
	done < $file
	if /sbin/ping -c 1 -i 1 $vfd 2>&1 > /dev/null
	then
		echo "$message               " | $xport -h $vfd
		echo $now
	else
		echo "Networnk Error!"
    fi
	sleep 20
done