Find below a quick and dirty chat script that I wrote for sending messages
to Telstra's SMS service. You need a modem, but that's all. I've also got a
cheap and nasty perl script for an email to SMS gateway, if anyone is
interested.
#!/bin/sh
#
TARGET=61417231046 # insert your phone number here, or make this $1
and MSG=$2
MSG=$1
SMS_NUMBER=0418707767
TTYPARM="2400 cs8 cstopb -parenb"
DEVNAME=ttyS1 # insert name of modem device here. DON"T USE /dev/modem -
locking doesn't work!
LOCKFILE=/var/lock/LCK..$DEVNAME
DEV=/dev/$DEVNAME
if [ -e $LOCKFILE ] ; then
echo "Modem in use - try again later"
exit
fi
echo " $$" > $LOCKFILE # this isn't atomic, but it's good enough =8^)!!
echo $$
stty $TTYPARM > $DEV
/usr/sbin/chat -v <$DEV > $DEV REPORT CONNECT ABORT BUSY ABORT 'NO DIALTONE'
ABORT 'NO CARRIER' '' ATZ OK "\\dATDT${SMS_NUMBER}" CONNECT '' 'QUIT)'
"$TARGET\\n" "KEY" "$MSG" "BEING SENT" "ATH" > $DEV < $DEV
Regards,
Craig Southeren
-------------------------------------------
Equivalence - Home of FireDoor, MibMaster & PhonePatch
For Open Source H.323 - see http://www.openh323.org
Email: [EMAIL PROTECTED]
Web: http://www.equival.com.au
Fax: +61 2 4368 1395 Voice: +61 2 4368 2118
-----------------------------------------------------
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Howard Lowndes
> Sent: Thursday, 23 December 1999 21:40
> To: Dwight Walker
> Cc: [EMAIL PROTECTED]
> Subject: Re: [SLUG] Telstra Mobilenet email phone number
>
>
> 018018767
>
> Howard.
> ______________________________________________________
> LANNet Computing Associates <http://www.lannet.com.au>
>
> On Thu, 23 Dec 1999, Dwight Walker wrote:
>
> > Does anyone know this number? I think Jason did. It is used
> to dialup and
> > send email from your mobile phone.
> > ----------------------------------------------------
> > Dwight Walker
> > WWWalker Web Development Pty. Ltd. (ACN 088 959 086)
> > PO Box 428, Merrylands, Sydney, 2160, Australia
> > http://www.wwwalker.com.au,
> http://www.speakeasy.org/~dwight (US mirror)
> > tel
> +61-2-96371649, mob +61-412-405727, fax +61-2-97772058
> > ICQ No. 4631678, handle: wwwalker (www.icq.com)
> >
> >
> >
> > --
> > SLUG - Sydney Linux Users Group Mailing List -
http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
>
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text