xref: /csrg-svn/usr.bin/leave/leave.1 (revision 44955)
143704Scael.\" Copyright (c) 1980, 1990 The Regents of the University of California.
243704Scael.\" All rights reserved.
319169Smckusick.\"
443704Scael.\" %sccs.include.redist.man%
519169Smckusick.\"
6*44955Scael.\"     @(#)leave.1	6.4 (Berkeley) 07/24/90
743704Scael.\"
843704Scael.Dd
943704Scael.Dt LEAVE 1
1043704Scael.Sh NAME
1143704Scael.Nm leave
1243704Scael.Nd remind you when you have to leave
1343704Scael.Sh SYNOPSIS
1443704Scael.Nm leave
15*44955Scael.Op [\&+] Ar hhmm
1643704Scael.Sh DESCRIPTION
1743704Scael.Nm Leave
1819169Smckusickwaits until the specified time, then reminds you that you
1919169Smckusickhave to leave.
2019169SmckusickYou are reminded 5 minutes and 1 minute before the actual
2119169Smckusicktime, at the time, and every minute thereafter.
2219169SmckusickWhen you log off,
2343704Scael.Nm leave
2419169Smckusickexits just before it would have
2519169Smckusickprinted the next message.
2643704Scael.Pp
27*44955ScaelOptions:
28*44955Scael.Pp
29*44955Scael.Tw Fl
30*44955Scael.Tp Ar hhmm
31*44955ScaelThe time of day is in the form
32*44955Scael.Ar hhmm
33*44955Scaelwhere
34*44955Scael.Ar hh
35*44955Scaelis a time in
36*44955Scaelhours (on a 12 or 24 hour clock), and
37*44955Scael.Ar mm
38*44955Scaelare minutes.
3919169SmckusickAll times are converted to a 12 hour clock, and assumed to
4019169Smckusickbe in the next 12 hours.
4143704Scael.Tp Ic \&+
4219368SmckusickIf the time is preceeded by `+', the alarm will go off in hours and minutes
4319368Smckusickfrom the current time.
4443704Scael.Tp
4543704Scael.Pp
4619169SmckusickIf no argument is given,
4743704Scael.Nm leave
4819169Smckusickprompts with "When do you
4919169Smckusickhave to leave?". A reply of newline causes
5043704Scael.Nm leave
5119169Smckusickto exit,
5219169Smckusickotherwise the reply is assumed to be a time.
5319169SmckusickThis form is suitable for inclusion in a
5443704Scael.Pa .login
5519169Smckusickor
5643704Scael.Pa .profile.
5743704Scael.Pp
5819169SmckusickLeave ignores interrupts, quits, and terminates.
5943704ScaelTo get rid of it you should either log off or use
60*44955Scael.Ql kill \-9
6119169Smckusickgiving its process id.
6243704Scael.Sh SEE ALSO
6343704Scael.Xr calendar 1
6443704Scael.Sh HISTORY
6543704Scael.Nm Leave
6643704Scaelappeared in 3 BSD.
67