Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!VENERA.ISI.EDU!KATZ From: KATZ@VENERA.ISI.EDU (Alan R. Katz) Newsgroups: comp.windows.x Subject: Killing X-windows Message-ID: <556403201.0.KATZ@VENERA.ISI.EDU> Date: Wed, 19-Aug-87 16:26:41 EDT Article-I.D.: VENERA.556403201.0.KATZ Posted: Wed Aug 19 16:26:41 1987 Date-Received: Sat, 22-Aug-87 04:34:23 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 33 Thanks to all those who replied to my previous message. The best idea(s) I got was to set environment variables to the correct PID when X starts up, then use them to exit. Some suggested using ps and greping "uwm" and killing the process running that command. I think that this kind of thing can be VERY DANGEROUS (suppose someone has some other program called uwm that happens to be running). The only way you can be sure which process it is that you want to kill is to have saved the number when it started. By the way, I have a sharfile of files which puts up a basic X environment on the Sun (should work anywhere). It starts up an X console window, uwm, some xterms, and defines the mouse buttons to be somewhat similar to what they do under suntools. I did this so naive users could start up X in a reasonable way without reading tons of documentation and figuring out which window manager to run. I can mail it to the list if there is enough interest, or it is FTPable from Venera.Isi.Edu (anonymous login) in the file /div2/katz/myx.sharfile. Just FTP, unshar the file, and follow the directions in README. Now, does anyone know how I can have a menu selection to kill a particular window? (such as a perfmon window, for example). Alan (Katz@ISI.EDU) -------