xref: /original-bsd/usr.bin/leave/leave.1 (revision 05f73395)
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)leave.1	6.3 (Berkeley) 06/24/90
7.\"
8.Dd
9.Dt LEAVE 1
10.Sh NAME
11.Nm leave
12.Nd remind you when you have to leave
13.Sh SYNOPSIS
14.Nm leave
15.Op Op \&+ Ar hhmm
16.Sh DESCRIPTION
17.Nm Leave
18waits until the specified time, then reminds you that you
19have to leave.
20You are reminded 5 minutes and 1 minute before the actual
21time, at the time, and every minute thereafter.
22When you log off,
23.Nm leave
24exits just before it would have
25printed the next message.
26.Pp
27The time of day is in the form hhmm where hh is a time in
28hours (on a 12 or 24 hour clock).
29All times are converted to a 12 hour clock, and assumed to
30be in the next 12 hours.
31.Tw Ds
32.Tp Ic \&+
33If the time is preceeded by `+', the alarm will go off in hours and minutes
34from the current time.
35.Tp
36.Pp
37If no argument is given,
38.Nm leave
39prompts with "When do you
40have to leave?". A reply of newline causes
41.Nm leave
42to exit,
43otherwise the reply is assumed to be a time.
44This form is suitable for inclusion in a
45.Pa .login
46or
47.Pa .profile.
48.Pp
49Leave ignores interrupts, quits, and terminates.
50To get rid of it you should either log off or use
51.Dq Li kill \-9
52giving its process id.
53.Sh SEE ALSO
54.Xr calendar 1
55.Sh HISTORY
56.Nm Leave
57appeared in 3 BSD.
58