elite enhancement for CLI logging ?

Gert Doering (gert@greenie.muc.de)
Sun, 8 Nov 1998 00:39:36 +0100


hi,

On Sat, Nov 07, 1998 at 11:31:40PM +0000, Roeland Th Jansen wrote:
> > Hmmm.  This sounds like a pretty weird "make" version... why does it
> > insist to compile "cnd.o" into an executable "cnd"?  That can't work.
> well, I figured that there might be a program called cnd, so i tried make
> cnd. easy ;-)

Ah.  Now I understand the result :-)

No, cnd is part of mgetty :-) - and I do not ship sample "cnd-program"s
yet.  But it's pretty easy.

----- snip ------
#!/bin/sh
#
from=$2
to=$5

exec >>/tmp/cbh 2>&1
date 
echo "cbh: args: $@"
echo "cbh: from='$from', to='$to'" 

case $from in
    89323560)   from="$from (SpaceNet)" ;;
    896657*)    from="$from (Compuserve/???)" ;;
    893823*)    from="$from (BMW/???)" ;;
#    [... rest of numbers cut away to protect the innocent...]
esac

/usr/bin/logger -p local1.info "ISDN CALL: tty: $1 from '$from' to '$to'"

# do not accept call
exit 1
----- snip ------

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de