CraigM
11-14-2002, 08:34 PM
Can anyone here tell me how to build a simple script to dial out on the phone? Not to get PPP or a modem connection, just to dial the phone.
Here's a try that didn't work:
#!/bin/bash
#Dialout script
echo ATDT$1 > /dev/modem
with a mate to hang up when I pick up the phone to talk:
#!/bin/bash
#Reset modem
echo ATH >/dev/modem
echo ATZ >/dev/modem
The dialout does not get the modem, an external USR Sportster V90, to dial out. The lights flicker but that's all.
If I change the redirection (">") to a pipe ("|") the TR light comes on and stays on until I run the reset command.
Does anyone know how to get this modem, which is very standard and accepts normal AT commands, to pick up and dial out using a simple bash script?
Craig
Here's a try that didn't work:
#!/bin/bash
#Dialout script
echo ATDT$1 > /dev/modem
with a mate to hang up when I pick up the phone to talk:
#!/bin/bash
#Reset modem
echo ATH >/dev/modem
echo ATZ >/dev/modem
The dialout does not get the modem, an external USR Sportster V90, to dial out. The lights flicker but that's all.
If I change the redirection (">") to a pipe ("|") the TR light comes on and stays on until I run the reset command.
Does anyone know how to get this modem, which is very standard and accepts normal AT commands, to pick up and dial out using a simple bash script?
Craig