cannot run vm shell script from a daemon
Gert Doering (gert@greenie.muc.de)
Sun, 27 Jun 1999 16:54:55 +0200
Hi,
On Fri, Jun 25, 1999 at 01:07:44AM -0700, John Lowry wrote:
> Thanks a lot to the authors of vgetty... lots of interesting things are
> possible if I could understand why I can't get it to run from within my
> web server.
>
> I can run a vm shell program from the command line but when I try to run
> it from inside a daemon it doesn't work (I'm using one of the standard
> scripts obtained from the distribution).
This is interesting indeed. (I don't understand yet why you would
want to do that, run it from a WWW server, but that doesn't matter - it
really should work).
[..]
> 06/24 23:45:42 vm: Executing shell script /home/web/server1/www/ringading/message.sh with shell /bin/sh
> 06/24 23:45:42 vm: opening pipes
> 06/24 23:45:42 vm: forking shell
> 06/24 23:45:42 vm(0): HELLO SHELL
> 06/24 23:46:42 vm: Watchdog timer expired, exiting...
> --
Looks like the message doesn't arrive at the shell script. Maybe the WWW
server is doing weird things with its file descriptors? You might want to
find out whether stdin/stdout/stderr are pointing to "somewhere" or
whether they are valid.
[..]
> I'm running RedHat Linux 5.2 with 2.0.35 kernel, glibc 2.1.1 with a US
> Robotics 56K modem. I installed the mgetty-voice-1.1.14 rpm (with 1.1.14
> version of mgetty).
You might also want to try 1.1.20 - 1.1.14 is fairly old.
> PS. I also can't work out how to use vm shell to send an AT string to the
> modem to tell it to ignore my stuttering dial tone to dial out when I
> have a voicemail on the line. For some odd reason I can't see that
> documented anywhere and if anyone can point me to the right place that
> would be great.
There is no way to send individual AT commands from voice shell, you would
have to configure the appropriate commands in voice.conf (or in the
source code, worst case).
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-35655025 gert.doering@physik.tu-muenchen.de