unexpected byte error
Stephan Kahnt (stephan.kahnt@ipk.fhg.de)
Wed, 25 Nov 1998 20:10:59 +0100
Hello,
here is your original message:
----------------------------------------------------------------------------------
Re: vgetty; unexpected byte error
Author: Gert Doering
Email: gert@greenie.muc.de
Date: 19
Forums: de.alt.comm.mgetty
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
---------------------------------------------------------------------------------
I just recieved a mail saying I should call vgetty from inittab the following
way:
v1:2345:respawn:/usr/local/sbin/vgetty.wrapper /dev/modem
vgetty.wrapper:
#! /bin/sh
/usr/local/sbin/vgetty $* 2>/tmp/errorlog
I tried it but now I can't use my pppd anymore to dial into the internet.
Thank you for any help
By
Gert Doering wrote:
> Hi,
>
> I have *no* idea what you're talking about...
>
> gert
>
> On Wed, Nov 25, 1998 at 11:43:56AM +0100, Stephan Kahnt wrote:
> > Hi,
> >
> > I found a thread from 1997 concering this subject. Gerd wrote:
> >
> > > Just insert an "exec 2>/tmp/errorlog" at the top of the script, and
> > you'll be able to use stdout.
> >
> > Unfortunately I don't know what script he's talking about. I've got the
> > same problem but don't know where to insert the line.
> >
> > I start vgetty from inittab :
> >
> > v1:2345:respawn:/usr/local/sbin/vgetty /dev/modem
> >
> > Thanks for any help.
> >
> > Stephan
> >
>
> --
> 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
>
> -
> Posted automagically by a mail2news gateway at muc.de e.V.
> Please direct questions, flames, donations, etc. to admin@newsgate.muc.de