#!/bin/sh # ~jhs/public_html/bin/.sh/telno # Show who is calling me. # can be called direct by human, also called by /etc/isdn/isdn. . /site/etc/gate/variables.sh # This new version can be called on any host rsh isdn "xterm -display `printenv DISPLAY` -geometry 80x3-0-90 -fn fixed \ -n telno -T \"isdn - Phone\" -e ~jhs/public_html/bin/.sh/telno2" & # -fn 9x15bold # Geometry: # 80x3-0-90 is ideal for flip with 1600x1200 display. # 80x3-0-63 is ideal for lapd with 1024x768 display. # but as gates have DISPLAY=user:0 # (where user is a named cname for flip or lapd) # cant use DISPLAY to select geometry, should use something else. echo $! > $telno_pid # The following commands all hung, so I need to hack grep to flush # a line at a time. # | cat # | sed -e s/......................// # | grep -v "to my_number" # the grep -v is because I want to see only humans, not callers to my data line