Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!boulder!uswat!eatdust!rls From: rls@eatdust.uswest.COM Newsgroups: comp.windows.x Subject: Automatic logoff from X Message-ID: <2429@uswat.UUCP> Date: 19 May 89 19:01:55 GMT Sender: news@uswat.UUCP Reply-To: rls@eatdust.uswest.COM () Distribution: usa Organization: U S WEST Advanced Technologies Lines: 44 From: rls@eatdust.uswest.COM () I am designing an application which must be portable across a number of UNIX machines, and which might also be run from an X-terminal. I would like to put an "exit" option on the window mgr menu which would not only exit the user from X, but also log them out of UNIX. Not all window managers have implemented an exit option. On an HP machine, I was able to do an "exec x11start" in my .profile, which Logged me off when I hit CTRL-SHIFT-RESET. However, I would like this done under program control. WHile in an xterm window, I tried to send a kill -9 to the login shell, which logged me off, but the window manager wouldn't die. I can kill the window manager, but that doesn't log me off. ( If I could find the right pid to kill, I could do it in a program ). ANy ideas, also on how to deal with the fact that on an X-terminal, the application would be running on a different machine than the X-server. If possible, I would like to avoid doing a "ps" type command since they are not portable across machines. Path: eatdust!rls Newsgroups: comp.windows.x Subject: Automatic logout while in X Expires: References: Sender: Reply-To: rls@eatdust.uswest.COM () Followup-To: Distribution: usa Organization: U S WEST Advanced Technologies Keywords: