From bdc28bd4aaa128493c6120d07395bc56aff223d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sun, 6 Jan 2013 01:36:25 +0100 Subject: [PATCH] Added example configuration file. Added Readme file with script description and installation. --- README | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ smsrc | 2 ++ 2 files changed, 54 insertions(+) create mode 100644 README create mode 100644 smsrc diff --git a/README b/README new file mode 100644 index 0000000..f0b1ad1 --- /dev/null +++ b/README @@ -0,0 +1,52 @@ +Synopsis +-------- +sms.pl MOBILE_NO "TEXT_MESSAGE" + +Description +----------- +sms.pl allows sending smses using your Orange.pl account. +Orange.pl gives every registered user 30 free smses a month. Why don't simplify +and automate it a little? + +Dependencies +------------ +Make sure you have perl installed on your system. As I know, every Linux distribution +have it installed, by default. Invoke following command in terminal. If you don't +have or can't install cpan on your system, you will have to install these dependencies +manually. + + cpan -i WWW::Mechanize Mojo::DOM Config::General Data::Dumper + +Installation +------------ +Give permissions to execute file as a program: + chmod u+x sms.pl + +You can also copy file to e.g: ~/bin directory, so you can call it without +entering full path to the script. Personally, I'm using symlink for that like this: + + ln -s /path/to/script ~/bin/sms + +so I invoke it without .pl extension. + +Configuration +------------- +Create file with your Orange.pl credentials in HOME directory: + + touch .smsrc + +Fill it like this: + + login = LOGIN + password = PASSWORD + +Author +------ +Rafał Długołęcki + +Copyright and License +--------------------- +Copyright 2012, 2013 Rafał Długołęcki + +This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. + diff --git a/smsrc b/smsrc new file mode 100644 index 0000000..4208178 --- /dev/null +++ b/smsrc @@ -0,0 +1,2 @@ +login = LOGIN +password = PASSWORD -- 2.30.2