NAME
leave — remind you when you have to leave
DESCRIPTION
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,
leave
exits.
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 specified.
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 process ID.
EXAMPLES
The command
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.
WARNINGS
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.
AUTHOR
leave
was developed by the University of California, Berkeley.