Let's put VGETTY to execute my script!!!

Marc SCHAEFER (schaefer@alphanet.ch)
Wed, 27 Oct 1999 15:28:55 +0200


Using MIME makes decoding difficult. The following log file may be
corrupted. ASCII files can be sent without any encoding.

> 10/27 10:05:27 yS1  vgetty: experimental test release 0.9.4 / 20Jul99
> 10/27 10:05:27 yS1  mgetty: experimental test release 1.1.21-Jul24

[ ... ]

> 10/27 10:06:28 yS1    Multitech_5600ZDXv: OK
> 10/27 10:06:28 yS1  vgetty: Executing shell script /home/ricardo/mgetty1=
> .1.21/voice/scripts/demo.sh with shell /bin/sh
> 10/27 10:06:28 yS1    vgetty: opening pipes
> 10/27 10:06:28 yS1    vgetty: forking shell
> 10/27 10:06:28 yS1   vgetty(0): HELLO SHELL

So, we execute that program /home/ricardo/mgetty1.1.21/voice/scripts/demo.sh
with shell /bin/sh

> 10/27 10:06:28 yS1    vgetty: Got child changed status signal
> 10/27 10:06:28 yS1    vgetty: queued event SIGNAL_SIGCHLD at position 00=
> 04
> 10/27 10:06:28 yS1   vgetty: shell exited normally with status 0x0001

which immediately exits. I suggest adding some debugging to that file.

Quick comments:
   - you need an argument of ``dialup'' if you want to use the dialup line
     instead of the speaker
   - demo.sh plays demo.rmd if it exists, and records if coming from
     dialup.
   - I just tried, on my installation vgetty talks with the shell program,
     HELLO VOICE PROGRAM, etc. On yours it is as such there are some
     permission problems (doubt, since root), or path wrong, etc.

> 10/27 10:06:28 yS1    vgetty: trying data connection
> 10/27 10:06:28 yS1   voice command: 'AT#CLS=3D0' -> 'OK'
> 10/27 10:06:28 yS1    vgetty: AT#CLS=3D0
> 10/27 10:06:28 yS1    vgetty: unqueued event SIGNAL_SIGCHLD at position =
> 0004
> 10/27 10:06:28 yS1    vgetty: voice_handle_event got event SIGNAL_SIGCHL=
> D with data <NUL>
> 10/27 10:06:28 yS1    vgetty: voice_handle_event got unknown event SIGNA=
> L_SIGCHLD with data <NUL>
> 10/27 10:06:28 yS1    Multitech_5600ZDXv: ERROR
> 10/27 10:06:28 yS1  vgetty: Modem returned ERROR
> 10/27 10:06:28 yS1  vgetty: Could not switch to data mode

We try data connection, but this fails. To fix that problem, I need
an unconverted log file.