xref: /original-bsd/usr.bin/leave/leave.1 (revision c8089215)
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.4 (Berkeley) 07/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 [\&+] 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
27Options:
28.Pp
29.Tw Fl
30.Tp Ar hhmm
31The time of day is in the form
32.Ar hhmm
33where
34.Ar hh
35is a time in
36hours (on a 12 or 24 hour clock), and
37.Ar mm
38are minutes.
39All times are converted to a 12 hour clock, and assumed to
40be in the next 12 hours.
41.Tp Ic \&+
42If the time is preceeded by `+', the alarm will go off in hours and minutes
43from the current time.
44.Tp
45.Pp
46If no argument is given,
47.Nm leave
48prompts with "When do you
49have to leave?". A reply of newline causes
50.Nm leave
51to exit,
52otherwise the reply is assumed to be a time.
53This form is suitable for inclusion in a
54.Pa .login
55or
56.Pa .profile.
57.Pp
58Leave ignores interrupts, quits, and terminates.
59To get rid of it you should either log off or use
60.Ql kill \-9
61giving its process id.
62.Sh SEE ALSO
63.Xr calendar 1
64.Sh HISTORY
65.Nm Leave
66appeared in 3 BSD.
67