Must distinguish between "ambiguous" and "unknown" commands.
[unix-history] / usr / src / usr.bin / leave / leave.1
CommitLineData
7219bb74
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
14140efb 5.\" @(#)leave.1 6.2 (Berkeley) %G%
7219bb74 6.\"
a40f7d8d 7.TH LEAVE 1 ""
7219bb74
KM
8.UC
9.SH NAME
10leave \- remind you when you have to leave
11.SH SYNOPSIS
12.B leave
a40f7d8d 13[ [+]hhmm ]
7219bb74
KM
14.SH DESCRIPTION
15.I Leave
16waits until the specified time, then reminds you that you
17have to leave.
18You are reminded 5 minutes and 1 minute before the actual
19time, at the time, and every minute thereafter.
20When you log off,
21.I leave
22exits just before it would have
23printed the next message.
24.PP
25The time of day is in the form hhmm where hh is a time in
26hours (on a 12 or 24 hour clock).
27All times are converted to a 12 hour clock, and assumed to
28be in the next 12 hours.
29.PP
a40f7d8d
KM
30If the time is preceeded by `+', the alarm will go off in hours and minutes
31from the current time.
32.PP
7219bb74
KM
33If no argument is given,
34.I leave
35prompts with "When do you
36have to leave?". A reply of newline causes
37.I leave
38to exit,
39otherwise the reply is assumed to be a time.
40This form is suitable for inclusion in a
41.I .login
42or
43.I .profile.
44.PP
45Leave ignores interrupts, quits, and terminates.
46To get rid of it you should either log off or use ``kill \-9''
47giving its process id.
48.SH SEE ALSO
49calendar(1)