#!/bin/tcsh -f

set SRV=$1
set IPADDR=$2

/bin/rm -f datalog
set TS = `date "+%Y:%m:%d:%H:%M:%S"`
tbit -m 536 -t Sack -n $SRV $IPADDR > datalog
set tbitstat=$status
if ($tbitstat == 0) then
	set RES = `tail -1 datalog`
	echo $TS $SRV $IPADDR $RES >> MASTERLOG
	echo $TS $SRV $IPADDR $RES 
endif
