This_machine=`hostname | cut -c 1`

logfile=/u/${LOGNAME}/vilst_update_log
#logfile=vilst_update_log
ls -l $logfile
curtime=`date -u +%Y%m%d%H%M`
echo "${curtime}: SDMEDIT file updated." >> $logfile
num=`cat $logfile | wc -l`
if test $num -gt 500
then
tail -500 $logfile  > f
cp f $logfile
fi

#if [ $This_machine = "m" ]
#then
#   other_machine="dew"
#   echo $other_machine
#else
#   other_machine="mist"
#   echo $other_machine
#fi

if [ $This_machine = "s" ]
then
   other_machine="cirrus"
   echo $other_machine
else
   other_machine="stratus"
   echo $other_machine
fi

#scp $logfile ${other_machine}:${logfile}
