xref: /freebsd/usr.bin/leave/leave.1 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
1756ae49fSBruce Evans.\" Copyright (c) 1980, 1990, 1993
2756ae49fSBruce Evans.\"	The Regents of the University of California.  All rights reserved.
3756ae49fSBruce Evans.\"
4756ae49fSBruce Evans.\" Redistribution and use in source and binary forms, with or without
5756ae49fSBruce Evans.\" modification, are permitted provided that the following conditions
6756ae49fSBruce Evans.\" are met:
7756ae49fSBruce Evans.\" 1. Redistributions of source code must retain the above copyright
8756ae49fSBruce Evans.\"    notice, this list of conditions and the following disclaimer.
9756ae49fSBruce Evans.\" 2. Redistributions in binary form must reproduce the above copyright
10756ae49fSBruce Evans.\"    notice, this list of conditions and the following disclaimer in the
11756ae49fSBruce Evans.\"    documentation and/or other materials provided with the distribution.
12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
13756ae49fSBruce Evans.\"    may be used to endorse or promote products derived from this software
14756ae49fSBruce Evans.\"    without specific prior written permission.
15756ae49fSBruce Evans.\"
16756ae49fSBruce Evans.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17756ae49fSBruce Evans.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18756ae49fSBruce Evans.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19756ae49fSBruce Evans.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20756ae49fSBruce Evans.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21756ae49fSBruce Evans.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22756ae49fSBruce Evans.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23756ae49fSBruce Evans.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24756ae49fSBruce Evans.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25756ae49fSBruce Evans.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26756ae49fSBruce Evans.\" SUCH DAMAGE.
27756ae49fSBruce Evans.\"
28756ae49fSBruce Evans.Dd April 28, 1995
29756ae49fSBruce Evans.Dt LEAVE 1
30756ae49fSBruce Evans.Os
31756ae49fSBruce Evans.Sh NAME
32756ae49fSBruce Evans.Nm leave
33756ae49fSBruce Evans.Nd remind you when you have to leave
34756ae49fSBruce Evans.Sh SYNOPSIS
35492dbf73SPhilippe Charnier.Nm
36c7368f93SRuslan Ermilov.Op Oo Cm \&+ Oc Ns Ar hhmm
37756ae49fSBruce Evans.Sh DESCRIPTION
38e8937ba0SPhilippe CharnierThe
39e8937ba0SPhilippe Charnier.Nm
40e8937ba0SPhilippe Charnierutility waits until the specified time, then reminds you that you
41756ae49fSBruce Evanshave to leave.
42756ae49fSBruce EvansYou are reminded 5 minutes and 1 minute before the actual
43756ae49fSBruce Evanstime, at the time, and every minute thereafter.
44756ae49fSBruce EvansWhen you log off,
45492dbf73SPhilippe Charnier.Nm
46756ae49fSBruce Evansexits just before it would have
47756ae49fSBruce Evansprinted the next message.
48756ae49fSBruce Evans.Pp
493bd17b58SPhilippe CharnierThe following options are available:
503bd17b58SPhilippe Charnier.Bl -tag -width indent
51756ae49fSBruce Evans.It Ar hhmm
52756ae49fSBruce EvansThe time of day is in the form
53756ae49fSBruce Evans.Ar hhmm
54756ae49fSBruce Evanswhere
55756ae49fSBruce Evans.Ar hh
56756ae49fSBruce Evansis a time in
57756ae49fSBruce Evanshours (on a 12 or 24 hour clock), and
58756ae49fSBruce Evans.Ar mm
59756ae49fSBruce Evansare minutes.
60756ae49fSBruce EvansAll times are converted to a 12 hour clock, and assumed to
61756ae49fSBruce Evansbe in the next 12 hours.
62756ae49fSBruce Evans.It Cm \&+
63756ae49fSBruce EvansIf the time is preceded by
64463cfa80SRuslan Ermilov.Sq Cm \&+ ,
65756ae49fSBruce Evansthe alarm will go off in hours and minutes
66756ae49fSBruce Evansfrom the current time.
67756ae49fSBruce Evans.El
68756ae49fSBruce Evans.Pp
69756ae49fSBruce EvansIf no argument is given,
70492dbf73SPhilippe Charnier.Nm
71756ae49fSBruce Evansprompts with "When do you
7211458b96SPhilippe Charnierhave to leave?".
7311458b96SPhilippe CharnierA reply of newline causes
74492dbf73SPhilippe Charnier.Nm
75756ae49fSBruce Evansto exit,
76756ae49fSBruce Evansotherwise the reply is assumed to be a time.
77756ae49fSBruce EvansThis form is suitable for inclusion in a
78756ae49fSBruce Evans.Pa .login
79756ae49fSBruce Evansor
80756ae49fSBruce Evans.Pa .profile .
81756ae49fSBruce Evans.Pp
82dd512c47SDima DorfmanTo get rid of
83dd512c47SDima Dorfman.Nm
84dd512c47SDima Dorfmanyou should either log off or use
85756ae49fSBruce Evans.Ql kill \-s KILL
86756ae49fSBruce Evansgiving its process id.
87*fd1efedcSConrad Meyer.Sh SEE ALSO
88*fd1efedcSConrad Meyer.Xr calendar 1
89756ae49fSBruce Evans.Sh HISTORY
90756ae49fSBruce EvansThe
91492dbf73SPhilippe Charnier.Nm
92756ae49fSBruce Evanscommand appeared in
93756ae49fSBruce Evans.Bx 3.0 .
94