|[software] [catdoc] [tcl] [geography] [old things]|
modemtcl - Tcl interpreter with modem accessOn Unix one typically needs special rights to access modem, as it is system-wide resources. Typically one should need to be member of group uucp or dialout to be able to open modem device and create proper lock file which would prevent other programs to access modem while it in use.
This makes task of writing dialout programs on interpreted languages more complicated
Modemtcl is a special tcl interpreter (really startup program which uses libtclX.X.so) which can be installed SUID or SGID. It does give up special rights immediately after startup, before reading any startup scripts, and uses them only when special openmodem command is invoked.
This command opens specified device and creates proper UUCP-style lockfile. IT returns usial tcl channel identifier.
Really there also should be some interface to tcgetattr/tcsetattr C functions, for instance something like expect's stty command. But I haven't found time to write it. So you have only options provided by standard Tcl fconfigure command at your disposal.