xref: /original-bsd/usr.bin/leave/leave.1 (revision 6884d44a)
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.5 (Berkeley) 03/14/91
7.\"
8.Vx
9.Vx
10.Dd
11.Dt LEAVE 1
12.Sh NAME
13.Nm leave
14.Nd remind you when you have to leave
15.Sh SYNOPSIS
16.Nm leave
17.Op [\&+] Ar hhmm
18.Sh DESCRIPTION
19.Nm Leave
20waits until the specified time, then reminds you that you
21have to leave.
22You are reminded 5 minutes and 1 minute before the actual
23time, at the time, and every minute thereafter.
24When you log off,
25.Nm leave
26exits just before it would have
27printed the next message.
28.Pp
29Options:
30.Pp
31.Tw Fl
32.Tp Ar hhmm
33The time of day is in the form
34.Ar hhmm
35where
36.Ar hh
37is a time in
38hours (on a 12 or 24 hour clock), and
39.Ar mm
40are minutes.
41All times are converted to a 12 hour clock, and assumed to
42be in the next 12 hours.
43.Tp Ic \&+
44If the time is preceeded by `+', the alarm will go off in hours and minutes
45from the current time.
46.Tp
47.Pp
48If no argument is given,
49.Nm leave
50prompts with "When do you
51have to leave?". A reply of newline causes
52.Nm leave
53to exit,
54otherwise the reply is assumed to be a time.
55This form is suitable for inclusion in a
56.Pa .login
57or
58.Pa .profile.
59.Pp
60Leave ignores interrupts, quits, and terminates.
61To get rid of it you should either log off or use
62.Ql kill \-9
63giving its process id.
64.Sh SEE ALSO
65.Xr calendar 1
66.Sh HISTORY
67.Nm Leave
68appeared in 3 BSD.
69