O2sms
From DIT NetSoc
http://www.textcnanositchi.com
Contents |
[edit]
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.
[edit]
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.
[edit]
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
[edit]
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
[edit]
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
[edit]
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
[edit]
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
[edit]
Via message -m
o2sms mobile_recipient -m "type in message here" //Using the above, txts can easily be scripted
