#!/bin/sh
# ~jhs/public_html/bin/.sh/telno_2
# Purpose: ISDN Monitor isdnd.log on gate, called by telno_x
# See Also:
#  ~/.procmailrc_private_router_logs
#  ~/public_html/src/bsd/jhs/bin/public/phone/index.lmth
#  vi -c/Purpose:		\
#   ~/bin/.csh/telno_dsl	\
#   ~/bin/.csh/telno_dslx	\
#   ~/bin/.sh/telno		\
#   ~/bin/.sh/telno_2		\
#   ~/bin/.sh/telno_expt	\
#   ~/bin/.sh/telno_router	\
#   ~/bin/.sh/telno_x

# Show who is calling me.

# It was far too slow using NFS with
# 	tail -f /host/isdn/var/log/isdnd.log | grep -i "call from"
# the answerphone had cut in after 4 rings before it showed who was calling.
# So I've fallen back to running the tail process direct on the gate host.

tail -F /var/log/isdnd.log | grep -i "call from"

# The following commands all hung, so possibly I might hack grep to flush
# a line at a time.
# | cat
# | sed -e s/......................//
# | grep -v "to my_number"
# grep -v is as I want to see only humans, not callers to my data line
