leave - remind you when you have to leave
The leave command waits until the specified time, then reminds you to
leave. You are reminded 5 minutes and 1 minute before the actual
time, at the time, and every minute thereafter. When you log off,
The time of day is in the form hhmm, where hh is a time in hours
(which can range from 0 through 11 or 0 through 24 hours), and mm is
the number of minutes after the specified hour. If the value of hh is
greater than 11 (24-hour clock time), the specified value is reduced
by 12 to a new value in the range of 0 through 11, thus ensuring that
the alarm time is always set to activate within the next 12 hours.
For example, if hhmm is 1350 and the current time is 4:00 PM (1600),
the 1350 value is changed to 150 and the alarm is set for 1:50 AM,
nine hours and 50 minutes later. On the other hand, if it is 9:00 AM
and hhmm is specified as 2200 (10:00 PM), the value used is converted
to 1000 and the alarm is set for one hour later instead of 13 hours as
If no argument is provided, leave prompts with
When do you have to leave?
A reply of newline causes leave to exit; otherwise the reply is
assumed to be a time. This form is suitable for inclusion in a .login
or .profile file.
The leave command ignores interrupts, quits, and terminate signals.
To get rid of it you should either log off or use kill -9 giving its
sends an alarm (a beep) to your terminal to remind you that you have
to leave at 12:04 and reminds you that you are late at one minute
intervals after 12:04.
The leave command checks to see if a user has logged out by checking
the /etc/utmp file every 100 seconds. If a user logs out and logs
back in to the same tty before leave makes its periodic check, leave
may not know that the user has logged out.
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000
leave was developed by the University of California, Berkeley.
Hewlett-Packard Company - 2 - HP-UX Release 11i: November 2000