Beeper script for mgetty

Enno Ewers (bigbear@teddy.in-berlin.de)
Fri, 13 Oct 1995 16:05:34 +0100


Alex Noordergraaf (noorder@btg.com) wrote:
: Whops - I guess I should have explained a little bit better.  I need
: a script that will call me beeper when a fax comes in.  I need to work
: in a lab which is not on the internet and have to know when a new
: fax arrives on my HP.  The script has to handle calling the 800
: number for Skypage and then dealing with the prompts....

Voice prompts or a modem line ? I only used Skypage with their voice
system, but I am quite shure that they are also offering a modem
line. (I can't check, because I am not in the US anymore...) Just try
using their service with a terminal program, note the prompts and
write a simple kermit script. The new_fax program would then just call
kermit with:

kermit -y your_script

while 'your_script' would be

[normal initialization]
dial 1-800-759-xxxx
SCRIPT expect send expect send...
hangup

That should only take a few minutes. What could take some more time
would be the error handling (modem locked, dial failed, no
connection...).

If they don't offer a modem dialup, a really grubby solution would be
to make a guess about the response times, set the modem dial timeout
to the time the call should be completed, and send the modem a dial
string like: atdt1800759888,,,1234567#,1#,0987654321#,#,,

That should work, too, but there is absolutely no way of checking for
errors. Besides, only numeric messages this way.

Enno

P.S.: The company I worked with had an email-to-pager gateway running
with WinBeep (no, I would never recommend using windoze). Maybe
someone at your company has already done so ?
-- 
Enno Ewers                       \_\__\___    Fon: +49 30 8025915
bigbear@teddy.in-berlin.de        \_\__\___    Fax/Data: +49 30 8021190
enno@afutub.extern.tu-berlin.de    \_\__\___