o2sms - A perl script to send SMS messages using .ie websites.
o2sms
is a script to send SMS messages via the command line using the websites
of Irish mobile operators. This is done by simulating a web browser's
interaction with those websites. This script requires a valid web account with
O2 Ireland, Vodafone Ireland or Meteor Ireland.
The author accepts no responsibility nor liability for your use of this software. Please read the terms and conditions of the website of your mobile provider before using the program.
o2sms [options] <number|alias|group> [<number|alias|group> ...]
The message will be read from standard input; either pipe some text or type the message, ending with CTRL-d or the . character on a line by itself.
Use this username (defaults to unix username)
Use this password (it omitted, will prompt for password)
Use this configuration file (defaults to ~/.o2sms/config)
Use this dir for cookie files, state files and log files. (defaults to ~/.o2sms/)
Reuse cookies if possible (the default)
Allow message to be split in multiple SMSs (the default)
Allow message to be split in the middle of a word
Squeezes text (e.g. mak txt msg as smal as psble)
Emulate t9 behaviour
Use this HTTP proxy (defaults to the HTTP_PROXY environment variable, if present)
Use this HTTPS proxy (defaults to the HTTP proxy or HTTPS_PROXY environment variable, if present)
Append this text to every message
Force the carrier to be this (``o2'', ``vodafone'' or ``meteor'' (or ``aft''))
Don't wait for STDIN, send this message
Keep a history file (in ~/.o2sms/history)
Embedded mode, don't prompt for anything.
Prints this help message and exits
Debug mode (use twice for more verbose output)
Print version and exit
Configuration is in the file ~/.o2sms/config
(or ~/.vodasms/config
or
~/.meteorsms/config
) (or ~/.aftsms/config
) or can be overwritten with
the -c / --config-file command line option.
Values in this file are stored as one per line and take the same name and format as their command line equivalents.
The one exception to this is the 'alias' setting, which defines a named alias for one number (a straight alias) or more than one number (a group).
Configuration file example:
username frankc password mong0l0id nosplit alias mammy +353865551234 alias beerpeople +353865550000 +353865550001 +353865550002 # a comment
the WWW::SMS::IE::iesms manpage, the WWW::SMS::IE::o2sms manpage, the WWW::SMS::IE::vodasms manpage, the WWW::SMS::IE::aftsms manpage, the WWW::SMS::IE::meteorsms manpage
http://www.mackers.com/projects/o2sms/
David McNamara (me.at.mackers.dot.com) et al
Copyright 2000-2006 David McNamara
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.