home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10431 < prev    next >
Encoding:
Text File  |  1992-08-27  |  826 b   |  27 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!rexago8!aa
  3. From: aa@rexago8.uucp (Adam Andrews)
  4. Subject: Re: logout message
  5. Message-ID: <1992Aug27.125257.28363@rexago8.uucp>
  6. Organization: Summit Information Systems
  7. References: <3504@babcock.cerc.wvu.wvnet.edu>
  8. Date: Thu, 27 Aug 1992 12:52:57 GMT
  9. Lines: 16
  10.  
  11. hongman@cathedral.cerc.wvu.wvnet.edu (Guo Hongman) writes:
  12. > Can anyone tell how to display some message when I logout?
  13.  
  14. In SysV, include in your .profile:
  15.  
  16. trap 'yourprog' 0
  17.  
  18. where yourprog is a program or script which prints out a message.
  19.  
  20. (the action of 'trap 0' is executed when the current process is exited)
  21.  
  22.  
  23. -- 
  24. -------------------------------------------------------------------------------
  25. Adam Andrews                "When the going gets weird, we get even weirder."
  26. uunet!rexago8!aa or aa@rexago8.UUCP
  27.