Linux-Hams archive - August 1998: Re: How to display a message upon connects

Re: How to display a message upon connects

Tomi Manninen (ibayfrts.sictj@isis.de)
Mon, 10 Aug 1998 12:17:17 +0300 (EEST)


On Sat, 1 Aug 1998, Steve Fraser wrote:

> At 01:16 AM 8/1/98 +0200, Thomas Morch wrote:
> > I need to display a message, when users connect to certain callsigns
> >(because I have restructured the callsign/ssid layout). I have been
> >fooling arround with ax25d, but I can't seem to get it to do it.. All
> >it has to do, is to display a (configurable) message, and then disconnect
> >the channel again...
> > How could I do this
>
> This is what I have in one of my ax25d entries - I think it works OK to do
> what you want.....
>
> [VK5ASF VIA *]
> .....(entries for wanted stations omitted)......
> default * * * * * * - root /bin/echo echo "Sorry, only known stations allowed"

Or maybe even:

default * * * * * * - root /bin/echo echo -ne "Sorry, only...\r"

That way you should get the correct end-of-line character for packet. Most
terminal software don't care but some do.

-- 
Tomi Manninen   /   rzuamk@musin.de   /   OH2BNS @ OH2RBI.FIN.EU