home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / xenix / sco / 3613 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.4 KB  |  46 lines

  1. Newsgroups: comp.unix.xenix.sco
  2. Path: sparky!uunet!metter!openage!gryphon
  3. From: gryphon@openage.openage.com (The Golden Gryphon)
  4. Subject: Re: Forcing a user to go through a program at logout?
  5. Organization: Open Age, Inc.
  6. Date: Sat, 09 Jan 1993 03:09:47 GMT
  7. Message-ID: <1993Jan09.030947.4959@openage.openage.com>
  8. References: <1993Jan08.063840.9598@uumeme.chi.il.us>
  9. Lines: 35
  10.  
  11. jrd@uumeme.chi.il.us (John R. Dennison) writes:
  12.  
  13. >I am working on a statistics package for SCO Xenix 2.3.4GT.  At this stage,
  14. >I am contemplating several ways of going about things.  In one of the ways I
  15. >have thought about would require a user to go through a custom written 
  16. >executable *just* prior to logout.
  17.  
  18. >Is there anyway to *force* a user to go through a program prior to logout?
  19.  
  20. >Would I be able to, say, use a "trap" in the /etc/profile to force the
  21. >user through the program upon logout?
  22.  
  23. >Any other suggestions.
  24.  
  25. Use a shell script containing your package and the executable you want them to
  26. run before logout.  Then "exec" this shell script from their .profile.
  27.  
  28. .profile:
  29.  
  30. TERM=ansi
  31. ......
  32. export TERM .....
  33.  
  34. exec /usr/bin/myscript
  35.  
  36.  
  37. /usr/bin/myscript:
  38.  
  39. statistics_program
  40. custom_logout_program
  41. -- 
  42. The Golden Gryphon                 gryphon@openage.COM
  43. "Mad Scientists seeks mindless brawny assistants, good pay, quiet location."
  44. "They're not ghosts,  they're metaphysically challenged." - Me
  45. Openage - The Premier SCO UNIX integrator in the Washington D.C. area
  46.