*NOTE: These instructions are for Arch Linux. Your mileage may vary.
First, let's get/update rTorrent
# pacman -Sy rtorrent(If you installing rtorrent for the first time, please follow these instructions to get everything else setup)
And we'll need Heriloom's mailx program.
# pacman -S mailx-heirloom
Alrighty. Now, we're going to delete the /etc/nail.rc and then remake it.
# rm /etc/nail.rc
# touch /etc/nail.rc
Now edit with your favorite editor (I chose nano, but anything should work)
# nano /etc/nail.rcAnd add this. (Where USERNAME is your username for gmail and PASSWORD is your password for gmail)
Okay, now let's create our script.
$ touch ~/.mail.sh
Okay so here's where you need to find out what your email-to-text is.
Former AT&T customers: firstname.lastname@example.org
Virgin Mobile: email@example.com
Alltel: firstname.lastname@example.org OR
I have sprint, but change the script to fit your needs.
So let's edit out script.
$ nano ~/.mail.shAnd add
echo "$@: Done" | mailx email@example.comNow we need to make it executable.
$ chmod +x ~/.mail.sh
Okay that's done. Basically, what that's going to do is take whatever is passed to it ($@): Done and pipe it through mailx which goes back to /etc/nail.rc to login into your gmail account and send you an SMS.
Now, we need to add a line to the bottom our ~/.rtorrent file (you should have one, if not go back to the top)
$ nano ~/.rtorrentand add:
system.method.set_key = event.download.finished,notify_me,"execute=~/.mail.sh,$d.get_name="
So say you were downloading "Completely-Legal-Files.rar". When it gets done, you'll get a text message that says "Completely-Legal-Files.rar: Done"
Oh happy day! Now you can rush home and un-rar it!