home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!metter!openage!gryphon
- From: gryphon@openage.openage.com (The Golden Gryphon)
- Subject: Re: Forcing a user to go through a program at logout?
- Organization: Open Age, Inc.
- Date: Sat, 09 Jan 1993 03:09:47 GMT
- Message-ID: <1993Jan09.030947.4959@openage.openage.com>
- References: <1993Jan08.063840.9598@uumeme.chi.il.us>
- Lines: 35
-
- jrd@uumeme.chi.il.us (John R. Dennison) writes:
-
- >I am working on a statistics package for SCO Xenix 2.3.4GT. At this stage,
- >I am contemplating several ways of going about things. In one of the ways I
- >have thought about would require a user to go through a custom written
- >executable *just* prior to logout.
-
- >Is there anyway to *force* a user to go through a program prior to logout?
-
- >Would I be able to, say, use a "trap" in the /etc/profile to force the
- >user through the program upon logout?
-
- >Any other suggestions.
-
- Use a shell script containing your package and the executable you want them to
- run before logout. Then "exec" this shell script from their .profile.
-
- .profile:
-
- TERM=ansi
- ......
- export TERM .....
-
- exec /usr/bin/myscript
-
-
- /usr/bin/myscript:
-
- statistics_program
- custom_logout_program
- --
- The Golden Gryphon gryphon@openage.COM
- "Mad Scientists seeks mindless brawny assistants, good pay, quiet location."
- "They're not ghosts, they're metaphysically challenged." - Me
- Openage - The Premier SCO UNIX integrator in the Washington D.C. area
-