Send Self Reminders To Your Email From The Command Line

The following will allow you to send self reminders/TODO items to your Email at a specific time.

For example, if you want to remind yourself to submit an assignment at 15:20, you’ll be able to run this command to do it:

tdr “submit assignment” 15:20

This will send an Email to you, with the subject: [TODO] submit assignment. Email will be sent at 15:20.

To be able to do this, you migh need to configure your mail command (see my post about this).

Then, add this function to your ~/.bashrc file (or any file sources in bashrc):

function tdr {echo “mail -s \”[TODO] $1\” your.mail@domain.com < /dev/null” | at “$2″ 2> /dev/null;}

tdr stands for: TODO reminders. Of course you can choose any other name for the function.

No execute this:

source ~/.bashrc

That’s it, now you can try it:

tdr “Testing” 15:30

The [TODO] label in the subject is added to let you easily use Gmail filters to apply a specific label to your TODO items.

Based on a tip at Tips4Linux

If you enjoyed this post, make sure you subscribe to my RSS feed!

Post to Twitter Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to Ping.fm Post to Reddit Post to StumbleUpon

Related posts:

  1. Send Email from the Command Line using Gmail Account
  2. Tiny Bash Functions to Convert Between Numeric Representations
  3. Google Reader Useful “Send To” Services
  4. Mount ISO Images From the Command Line
  5. Share Code Snippets Easily From the Command Line

Tags: , , , ,

Saturday, March 21st, 2009 Linux

Leave a Reply

my email
Already a member?
Login
Login using Facebook:
Last visitors
my photo
Hi,
My name is Amir Watad. I have a BSc. in biomedical engineering from The Biomedical Engineering school , Technion , Israel, and am currently studying for a BSc. in electrical engineering at The Electrical Engineering school , Technion , Israel.
I work at the verification dept. in Mellanox Technologies Ltd.
I love Linux, the Command Line and the OpenSource Community.
I used to write Poems (Arabic) when I was able to find time for this.
March 2009
S M T W T F S
« Feb   May »
1234567
891011121314
15161718192021
22232425262728
293031  
Designed for Linux. Vista Incapable
SEO Powered by Platinum SEO from Techblissonline

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.