Change font size
It is currently Sat Sep 04, 2010 8:23 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: txtmsg: Command Line Text Messager over email (perl)
PostPosted: Wed Mar 17, 2010 9:26 pm 
Site Admin

Joined: Sun Jul 05, 2009 8:48 pm
Posts: 10
txtmsg: Command Line Text Messager over email
This program is designed to be used as a utility to send a text message to a pre-determined cell phone, ideally for alerting an administrator when something on a server goes wrong for whatever reason. This could easily be used for many other purposes as well, so use your imagination and let me know what you come up with!

Example:
Code:
root@localhost:~ # myip
12.34.34.12
root@localhost:~ #

Features:
- Sends text messages using an every-day SMTP server
- Can keep a log of every text message sent if you choose to do so
- Great for alerting administrators when something goes wrong, for example:
  • Power outage causing a server to run on batteries.
  • Hack Attempt
  • Hardware failure
  • Running low on disk space
  • Critical service failure
  • and tons more...
- Can easily be run from command line or inside of another script
- No charges if you have text messaging included on your wireless plan

Requirements:
- Perl
- Cell phone with texting enabled domain (most providers have this for free by default)
- Perl Module Net::SMTP
- Active internet connection
- SMTP server (currently this script only supports sending from a SMTP server that does not require authentication or encryption)

Directions
1. Download to your computer using a program like wget
2. Extract the tarball using the tar program
3. Change to the extracted directory
4. Edit the options in the top of the 'txtmsg' file
5. Send a test message to make sure it works
6. Move or create a symbolic link to wherever you like

Code:
# wget http://www.stevecross.org/utilities/txtmsg-1.0.tar.gz
# tar zxvf txtmsg-1.0.tar.gz
# cd txtmsg-1.0
# vi txtmsg
# ./txtmsg Hello World
# cp txtmsg /usr/local/sbin

Download
http://www.stevecross.org/utilities/txtmsg-1.0.tar.gz


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered By Slackware Linux
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net