#!/usr/bin/tcsh -f # set echo verbose # If debugging, remove the # at the start of this line # Purpose: Send yourself an e-mail. # Usage: echo 'Text of message' | showstat2 'Subject' # This script requires that the computer is connected to the internet # at the time of usage. It also needs sendEmail installed with # Net::SSLeay and IO::Socket::SSL. On Debian or Ubuntu that are # packages sendEmail, libnet-ssleay-perl, and libio-socket-ssl-perl. # In addition, you need to replace gmail_login_name@gmail.com below # with your e-mail address on the smtp server that is to send out the # e-mail. You need to replace name@address with the e-mail address # where you want the message to be sent to. You need to replace # smtp.gmail.com with the server that is to send out the mail if not # gmail, (like the smtp server of your ISP, company, or university), # replace gmail_login_name with the name that you login to that # server, and replace gmail_password with your password to that # server. The password should be between single quotes as shown, and # put a \ in front of any ! that it may contain: sendEmail -f 'gmail_login_name@gmail.com' -t 'name@address' \ -s smtp.gmail.com -xu 'gmail_login_name' -xp 'gmail_password' \ -o timeout=60 \ -u "$1" -q # Anyone who steals your computer, or has access to it, can read this # file, including the password. So do not put a password that you # also use for something important in here. Like the one for your # paypal or bank account. It should not even look like one of these # passwords. And make sure there is no sensitive e-mail on the # used server.