TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: =?UTF-8?Q?BJ=C3=B6RN_LUND
date: 2021-01-01 15:30:00
subject: Re: How to realize a `ser

Den 2020-12-31 kl. 21:38, skrev RobertoA:
>
> I cannot fully understand how to use the example code described, but it
> seems to me very useful to realize what I would like to achieve
> How to use this code on Raspberry board?


Hmm, if you don't see that, then it is not for you.
Basically you adapt the code for your purposes.
You assign values to variables
port
client_ip if you want a white list - otherwise remove that if-section
tty

then add a dbg proc like (or remove calls to dbg)
proc dbg {what } {
   puts $what
}

then you run it via tclsh (I think it is installed in raspbian else
sudo apt install tcl)

The filevent does the rest

But as others have pointed out - nc/netcat does the job as well
If you are not a programmer - then that is a better route.
If you needs are more special - then use something you can adapt
yourself - like above

--
Björn

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.