Wishes with a script and Bluetooth

At the end of each of the last few years I sent a short message to my friends with a text like “Dear Name, I wish you a Happy New Year”.

It was not possible to send a custom message to each of them using my mobile, so with a bit of scripting I got the job done.

First bind the serial of your GSM mobile/modem with

rfcomm bind 0 xx:xx:xx:xx:xx:xx 2 # 2 is my first serial channel

then, in a loop, use something like

gsmsendsms -d /dev/rfcomm0 $NUMBER "Dear $NAME, I wish you a Happy New Year"

Last update: 2008-05-20

Post a Comment

Your email is never shared. Required fields are marked *

*
*