Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use 'leave' to set a reminder to get going! UNIX
I have no idea how useful this is to most, but to me, I found it at least noteworthy. I noticed in the terminal, at least in bash, that hitting Tab-Tab will let you see all the commands you have available to you. As I was scanning through them, a few caught my eye, namely leave.

Pulling up the man leave page told me the very simple usage. Simply type:
% leave +hhmm
which will set an alarm for that many hours and minutes from the current time. To use a fixed time, drop the + flag, and it will allow you to set the leave alarm to some time in the future. You are reminded at five and one minute intervals. Nice thing about it in OS X is it actually audibly beeps at you.

A nice augment to leave is calendar, which is a little more flexible, see the man calendar page for more details.

[robg adds: Speaking of which, it's time for me to leave! Have a great day, everyone!]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[7,751 views]  

Use 'leave' to set a reminder to get going! | 13 comments | Create New Account
Click here to return to the 'Use 'leave' to set a reminder to get going!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use 'leave' to set a reminder to get going!
Authored by: ryanmathus on Dec 16, '03 11:52:10AM

When you type simply "leave", it will then prompt you and ask "When do you have to leave?"

It goes by military time as well. Neat little trick! Thanks!



[ Reply to This | # ]
Use 'leave' to set a reminder to get going!
Authored by: LC on Dec 16, '03 11:52:42AM
About "calendar", that's --

/usr/bin/cal

man cal

Larry.

[ Reply to This | # ]
Use 'leave' to set a reminder to get going!
Authored by: wdnx on Dec 16, '03 02:13:25PM
Erm... I'm pretty sure that the poster meant calendar as in calendar -f /usr/share/calendar/calendar.birthday -l 10 (gives you a list of people who have a birthday in the next 10 days). It's a separate utility (and minor time waster) from cal.

---

-30-

[ Reply to This | # ]

Use 'leave' to set a reminder to get going!
Authored by: LC on Dec 17, '03 04:18:36PM
Yeah sorry, I was thinking crazy at the time ... cal is just the (older) simple display;
calendar is the (newer) reminder service; oops!

[ Reply to This | # ]
Use 'leave' to set a reminder to get going!
Authored by: Auricchio on Dec 16, '03 12:23:01PM
I forgot about leave. It's been around since 4.1BSD; I recall using it in 1984...

---
EMOJO: mojo no longer workin'

[ Reply to This | # ]

Use 'leave' to set a reminder to get going!
Authored by: thrash on Dec 16, '03 01:37:33PM

On a similar subject to the "tab-tab" for listing commands, I use "control-X, control-D"... seems to have a similar output in the default terminal.



[ Reply to This | # ]
Use 'leave' to set a reminder to get going!
Authored by: Graff on Dec 16, '03 06:20:50PM

To see something intresting, give this a try:

calendar -f /usr/share/calendar/calendar.history -l 365|grep "LOTR"


[ Reply to This | # ]
?
Authored by: mm2270 on Dec 17, '03 02:28:48PM

Huh? This does nothing for me. What is it supposed to do?



[ Reply to This | # ]
?
Authored by: DC Watts on Dec 17, '03 02:57:35PM
Try
 cat /usr/share/calendar/calendar.history | grep "LOTR" 
... interesting all the stuff they've packed in there. :-)

[ Reply to This | # ]
re ?
Authored by: DC Watts on Dec 17, '03 06:06:10PM

BTW, using the calendar command as in Graff's post works for me.



[ Reply to This | # ]
?
Authored by: Graff on Dec 17, '03 10:02:43PM

Something might be messed up with your paths, try:

/usr/bin/calendar -f /usr/share/calendar/calendar.history -l 365 | grep "LOTR"
This will specifically run the proper calendar program located at /usr/bin/calendar

You can see if your $PATH variable is set up to use /usr/bin by doing:
echo $PATH
the text /usr/bin should be in there somewhere.

If it's not then if you are using tcsh for your default shell add this line to your '~/.tcshrc' file (create the file if you don't have one):
setenv PATH /usr/bin:{$PATH}
If you are using bash then add this line to your '~/.bash_profile' file (again create it if you don't have it)
export PATH=$PATH:/usr/sbin/:/usr/local/bin



[ Reply to This | # ]
Use 'leave' to set a reminder to get going!
Authored by: Anonymous on Dec 17, '03 12:43:10PM
A very nice GUI-based app that has much the same functionality is Pester.

There's a 2.0 of the application that I've seen screenshots of which will have some really nice functionality, but even its current incarnation is pretty sweet.

[ Reply to This | # ]

Use 'leave' to set a reminder to get going!
Authored by: bluehz on Dec 17, '03 09:55:22PM

and is there and easier way fo turning the alarm off after using + format. Just seems to continuously beep after the event.

You can always kill it - but is their an easier way?



[ Reply to This | # ]