O2sms

From DIT NetSoc

Jump to: navigation, search

http://www.textcnanositchi.com

Contents

Send Text Messages (SMS) via your O2/Vodafone/Meteor Account

www.o2.ie, www.vodafone.ie and www.meteor.ie allows you to send a set amount of free text messages per month, via their website. Instead of having to logon to their website, o2sms (also called vodasms or meteorsms) has been packaged up, via apt, to allow you to send Text Messages via the linux command line.

Config o2sms

From the config, this program knows whether to logon to the o2.ie or vodafone.ie or meteor.ie See below for the different types of configs.

O2sms Config

mkdir ~/.o2sms
cd .o2sms

vi config
//add the following lines
username yourmobile_no
password yourpassword_to_www.o2.ie
alias me yourmobile_no  //for an alias 'me'
alias name mobile_no

chmod 600 config

Vodasms Config

mkdir ~/.vodasms
cd .vodasms

vi config
//add the following lines
username yourmobile_no
password yourpassword_to_www.vodafone.ie
alias me yourmobile_no  //for an alias 'me'
alias name mobile_no

chmod 600 config

Meteorsms Config

mkdir ~/.meteorsms
cd .meteorsms

vi config
//add the following lines
username yourmobile_no
password yourpassword_to_www.meteor.ie
alias me yourmobile_no  //for an alias 'me'
alias name mobile_no

chmod 600 config

Usage of o2sms/vodasms/meteorsms on the CLI

In this sample we are going to use o2sms but if you want vodafone use vodasms and for meteor use meteorsms

Typical Way

o2sms mobile_recipient
//type in message here
//and here too.
//and end the message with CTRL+D
//or end the message with a period on a separate line

Via message -m

o2sms mobile_recipient -m "type in message here"
//Using the above, txts can easily be scripted
Personal tools