[comp.org.decus] Logout com file

mhart@dtoa1.dt.navy.mil (hart) (11/28/89)

HELP!!!

Does anyone know how to get a command file to run every time a user
logs out??
    Kinda like login.com, but a "logout.com"???

Please email replies to :
mhart@dtrc.dt.navy.mil

Thanx
Michael G. Hart

kaiser@cheese.enet.dec.com (11/28/89)

In article <435@nems.dt.navy.mil>, mhart@dtoa1.dt.navy.mil (hart) writes...

>Does anyone know how to get a command file to run every time a user
>logs out??   Kinda like login.com, but a "logout.com"???

In VMS through V5.3 there is no way to guarantee execution of a "LOGOUT.COM",
since a user can always bypass it (for instance, with STOP/ID=0).  For
unsophisticated (or cooperative) users you can use SYLOGIN.COM to define a
symbol that runs a systemwide command procedure when the user enters "LOGOUT",
e.g.,

	$ LOGO*UT := @PUBLIC:LOGOUT.COM

But what problem are you trying to solve with this technique?  Whatever it is,
you're more likely to get specific help if you ask about the specific problem.

---Pete

kaiser@cheese.enet.dec.com
DEC, 2 Mt. Royal Ave. (UPO1-3), Marlboro MA 01752-9108
508-480-4345 (machine: 617-641-3450)