On Wednesday 08 September 2004 13:52, Jamie Kerwick wrote: > Hi there, > > I have been tasked with figuring out how to send a series of AT commands > using a script to a modem plugged into our Linux server. > Can someone give me some clues on how I might go about this ?? > > The background to this is that we have a premicell (nokia gsm modem type > thing) that we want to use to send emails, sent to a specific address, > as text messages. We've figured out how to send the sms using AT > commands. Getting the email redirected to a script I can do fine, its > simply sending the AT commands to the modem that's the problem. > > Ta, > > Jamie > SNIP - Enormous mail disclaimer
echo "text message" > /dev/modem or echo "text message" > /dev/ttyS0 should do the trick. You might also like to read up on 'chat' It will allow you to automate a 'conversation' with your modem. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
