Modem::Vgetty problem

Marc SCHAEFER (schaefer@alphanet.ch)
18 Aug 1999 1907:42:08 +0200


Moe Pitman <mpitman@uni-market.com> wrote:
> 08/17 14:12:02 yS0  vgetty: Executing shell script
> /usr/local/vgetty/quick.pl with shell /usr/bin/perl

So, vm.log will display nothing since this is not handled by vm.
Only ``outgoing'' calls are handled by vm (manually!). This is
a shell script, so it's launched by vgetty.

> 08/17 14:12:03 yS0   shell(1): HELLO VOICE PROGRAM

so, the Perl module works mostly.

> 08/17 14:12:03 yS0   shell(1): PLAY /var/spool/voice/messages/welcome
> 08/17 14:12:03 yS0   vgetty(1): PLAYING
> 08/17 14:12:03 yS0  playing voice file /var/spool/voice/messages/welcome

Starting to play as ordered.

> 08/17 14:12:03 yS0    US Robotics: Use of uninitialized value at
> /usr/lib/perl5/site_perl/Modem/Vgetty.pm line 113, <GEN0> chunk 3.

I am surprised. This is a perl error message. How is this sent to the
US Robotics modem (since this looks what is happening: this is the
*MODEM* echo).  Or it's just stderr of the perl script which is intermixed
with vgetty log.  If you are good at perl (which I am not), you
could try to fix the Vgetty.pm.

mvm redirects 2> to another log file, for example. That maybe should be
done by your perl script (but I don't know how to do it) so to make
the log clearer.

> 08/17 14:12:03 yS0  vgetty: Modem did not echo the command
> 08/17 14:12:03 yS0    US Robotics: AT
> 08/17 14:12:04 yS0    US Robotics: OK
> 08/17 14:12:04 yS0  vgetty: start_play_file command failed
> 08/17 14:12:04 yS0   vgetty(1): ERROR
> 08/17 14:12:04 yS0   vgetty(1): READY

Did you hear something at all on the phone ?  It looks the play finished
but something wrong then happened with the modem. It's difficult to
know if it has something to do with the perl interface, I would think
not.

> 08/17 14:12:04 yS0   shell(1): GOODBYE
> 08/17 14:12:04 yS0   vgetty(1): GOODBYE SHELL