cannot run vm shell script from a daemon
John Lowry (jlowry@netcom.com)
Fri, 25 Jun 1999 01:07:44 -0700
Hi,
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).
I'm running the vm shell script from within AOLServer which is a
multi-threaded web server that has a facility for scheduling jobs. I've
turned error checking up to the max, but all I see in /var/log/vm.log is:
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...
--
The lock file is left behind in /var/lock. I've been trying this for several
hours and the weird thing is it has occasionally worked but I can't work
out what I've done to make it work. I seem to be able to get it to run
within an at job launched from a web server process but not directly from
the web server process itself.
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).
Any pointers on how to get this to work would be much appreciated.
John
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.