home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / xenix / sco / 3612 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.4 KB

  1. Path: sparky!uunet!wupost!crcnis1.unl.edu!crcnis1.unl.edu!manager
  2. From: Jeremy Bettis <jbettis@cse.unl.edu>
  3. Newsgroups: comp.unix.xenix.sco
  4. Subject: Re: Forcing a user to go through a program at logout?
  5. Date: 9 Jan 1993 06:06:14 GMT
  6. Organization: University of Nebraska--Lincoln    
  7. Lines: 24
  8. Distribution: world
  9. Message-ID: <1ilq0mINNnv5@crcnis1.unl.edu>
  10. References: <9301081733.AA15738@dynamix.com>
  11. NNTP-Posting-Host: cse.unl.edu
  12.  
  13. david@dynamix.com (David L Jarvis) writes:
  14.  
  15. >> 
  16. >> Is there anyway to *force* a user to go through a program prior to logout?
  17. >> 
  18.  
  19. >Sure ... we use "trap $HOME/.logout 0" in our .profile for ksh ...
  20.  
  21. This will not "force" the user to run .logout...  they can always just type
  22. trap - 0 and unset the trap again.  Or they could exit with exit 1, they
  23. could drop carrier if possible, or they could just type exec ksh sometime
  24. during the session.  I was using trap .logout 0 to run a logout file for
  25. myself, but I lost my trap when I would use newgrp, which execs a new shell
  26.  
  27. My solution was to get bash, and compile it.  It will execute a file
  28. called .bash_logout when exiting a login shell.  (I think it will work
  29. even if an exec, or newgrp is used.)
  30.  
  31.  
  32. --
  33. Jeremy Bettis   -*-   Jerbo Jehoshaphat   -*-   University of Nebraska
  34. INET:    jbettis@cse.unl.edu        "Those who stand in the middle of the
  35.     bt757@Cleveland.Freenet.Edu     road are often hit by passing cars."
  36.  BBS:    The Dew Drop Inn (402)476-8807 3/12/24
  37.