#!/bin/csh
#
# captsignal.csh --> captures signal strength to stdout
#
# syntax:  ./runsignal.csh  >> DATA_FILE_NAME

loop:

  date +"%Y/%m/%d %H:%M:%S"

  ./getsignal_neahbay.exp > getsignal2.log
  grep "0040965" getsignal2.log | head -1 | tail -1
  grep "0040965" getsignal2.log | head -1 | tail -1
  grep "0040965" getsignal2.log | head -1 | tail -1
  grep "0040965" getsignal2.log | head -1 | tail -1
  grep "0040965" getsignal2.log | head -1 | tail -1

  sleep 2

  goto loop

