vgetty; unexpected byte error

Gert Doering (gert@greenie.muc.de)
Sat, 5 Apr 1997 20:46:07 +0200


Hi,

Vladimir Turin wrote:
> Suresh Rajagopalan wrote:
> > Using 1.1.2 on a Zyxel 1496 (ver 6.17) I get the following error while
> > trying to
> > play a rmd file or do any kind of DTMF detection. DTMF detection works
> > sometimes but fails at other times with "unexpected byte" error msgs:
> 
> Do not try to write to the stderr from the shell script.
> This is 'feature' of vgetty - if shell script writes
> anything to the descriptor #2, vgetty receives
> this data "from" voice modem.
> Someone :-) have to cure it.

Actually, it's a generic problem: when *getty runs (doesn't matter, which
one you use), all of the file descriptors stdin+stdout+stderr are
connected to the *modem*. Now, in vgetty, stderr is not modified and so
stderr still is connected with the modem -> error messages are echoed back
to the host -> vgetty reads them as "input from the modem".

Just insert an "exec 2>/tmp/errorlog" at the top of the script, and you'll
be able to use stdout.

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