home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10556 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  961 b 

  1. Path: sparky!uunet!usc!cs.utexas.edu!torn!utzoo!dciem!r-node!pseudo!mjn
  2. From: mjn@pseudo.uucp (Murray Nesbitt)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: logout message
  5. Message-ID: <MJN.92Aug31003808@pseudo.uucp>
  6. Date: 31 Aug 92 08:38:08 GMT
  7. References: <3504@babcock.cerc.wvu.wvnet.edu> <2231@fnnews.fnal.gov>
  8. Sender: mjn@pseudo.uucp (Murray Nesbitt)
  9. Organization: Private system in Toronto, ON
  10. Lines: 17
  11. In-Reply-To: shah@fnsony.fnal.gov's message of 27 Aug 92 17:47:02 GMT
  12.  
  13.  
  14. shah@fnsony.fnal.gov (Hemant Shah) writes:
  15.  
  16. >In article <3504@babcock.cerc.wvu.wvnet.edu>, hongman@cathedral.cerc.wvu.wvnet.edu (Guo Hongman) writes:
  17. >|> 
  18. >|>  Can anyone tell how to display some message when I logout?
  19. >
  20. >Create ".logout" file in your home directory. It will be executed when you
  21. >logout.
  22.  
  23. This will only work with a certain shell (and its derivatives), which
  24. shall remain nameless.
  25.  
  26. For the Bourne shell and its derivatives, use the ``trap'' command.
  27.  
  28. -- 
  29. Murray
  30.