*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> leave (1)              
Title
Content
Arch
Section
 

Contents


 leave(1)                                                           leave(1)




 NAME    [Toc]    [Back]
      leave - remind you when you have to leave

 SYNOPSIS    [Toc]    [Back]
      leave [hhmm]

 DESCRIPTION    [Toc]    [Back]
      The leave command waits until the specified time, then reminds you to
      leave.  You are reminded 5 minutes and 1 minute before the actual
      time, at the time, and every minute thereafter.  When you log off,
      leave exits.

      The time of day is in the form hhmm, where hh is a time in hours
      (which can range from 0 through 11 or 0 through 24 hours), and mm is
      the number of minutes after the specified hour.  If the value of hh is
      greater than 11 (24-hour clock time), the specified value is reduced
      by 12 to a new value in the range of 0 through 11, thus ensuring that
      the alarm time is always set to activate within the next 12 hours.
      For example, if hhmm is 1350 and the current time is 4:00 PM (1600),
      the 1350 value is changed to 150 and the alarm is set for 1:50 AM,
      nine hours and 50 minutes later.  On the other hand, if it is 9:00 AM
      and hhmm is specified as 2200 (10:00 PM), the value used is converted
      to 1000 and the alarm is set for one hour later instead of 13 hours as
      specified.

      If no argument is provided, leave prompts with

           When do you have to leave?

      A reply of newline causes leave to exit; otherwise the reply is
      assumed to be a time.  This form is suitable for inclusion in a .login
      or .profile file.

      The leave command ignores interrupts, quits, and terminate signals.
      To get rid of it you should either log off or use kill -9 giving its
      process ID.

 EXAMPLES    [Toc]    [Back]
      The command

           leave 1204

      sends an alarm (a beep) to your terminal to remind you that you have
      to leave at 12:04 and reminds you that you are late at one minute
      intervals after 12:04.

 WARNINGS    [Toc]    [Back]
      The leave command checks to see if a user has logged out by checking
      the /etc/utmp file every 100 seconds.  If a user logs out and logs
      back in to the same tty before leave makes its periodic check, leave
      may not know that the user has logged out.



 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 leave(1)                                                           leave(1)




 AUTHOR    [Toc]    [Back]
      leave was developed by the University of California, Berkeley.

 FILES    [Toc]    [Back]
      /etc/utmp

 SEE ALSO    [Toc]    [Back]
      calendar(1).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
leave Tru64 Reminds you when to leave
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service