Skip to Content

Terminal tip: Remind yourself about appointments

Got a place you need to be at 3:00? Want to send yourself a message to get out the door at 2:40? Terminal's "leave" command offers a simple way to remind yourself about your upcoming schedule. leave 0240 waits until 2:35 and then alerts you to get ready to leave with both text and a beep. Reminders occur at 5 minutes and 1 minutes before the time you enter, and then every minute after until you close the terminal window. (You can also kill the process whose id is listed for you when you issue the leave command.)

Leave uses a 12-hour clock so you don't have to worry about whether to use 0240 or 1440. Both produce the same result. All times are assumed to be within the next 12 hours.

You can also use the "+" flag to set a relative time. Say you want to work on a project for just the next hour. Use leave +0100. This sets an alarm for one hour from the current time.



Categories

How-tos Terminal Tips

Got a place you need to be at 3:00? Want to send yourself a message to get out the door at 2:40? Terminal's "leave" command offers a...
 

Add a Comment

*0 / 3000 Character Maximum

6 Comments

Filter by:
Sovok

You can use Quicksilver for alarms, too.
Invoke Quicksilver, type ., type your message, tab, QSLargeTypeAction (if you press return now, it displays the message), ctrl+return, "run after delay" or "run at time", tab, enter your time (e.g. "5 minutes" or "17:56"), return and a big text bubble pops up with your text.

May 25 2007 at 11:57 AM Report abuse rate up rate down Reply
Albright

Note that this only works if you don't close the terminal window you started the process in. If you do that, the alarm will not trigger. I imagine switching users (su) would "break" this feature as well.

May 25 2007 at 3:22 AM Report abuse rate up rate down Reply
walkerjs

Anyone gonna gripe about yet another Terminal.app tip like the last one? ;)

leave is pretty old, too. I remember now (that I've seen this post) that I used to use it all the time back in the late '80s on our Sun work stations. It's so old, that I forgot that I used to use it.

Still a good tip though!

May 24 2007 at 8:39 PM Report abuse rate up rate down Reply
Stephen Macklin

Cool - that will come in handy all those times when iCal is just too complicated.

May 24 2007 at 8:05 PM Report abuse rate up rate down Reply
takagawa

Yea that was very cool but you were 12 hours late. I had to give a presentation and I needed a way to set a small alarm to warn me when I should be finishing up.

May 24 2007 at 8:03 PM Report abuse rate up rate down Reply
Ahmad

now that's a handy tip

May 24 2007 at 6:07 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.