Newsgroups: comp.sys.next
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cunixa.cc.columbia.edu!das15
From: das15@cunixa.cc.columbia.edu (Douglas A Scott)
Subject: Re: NextStep -> X tranfer problem
Message-ID: <1991Apr28.203959.13420@cunixf.cc.columbia.edu>
Sender: usenet@cunixf.cc.columbia.edu (The Network News)
Nntp-Posting-Host: cunixa.cc.columbia.edu
Reply-To: das15@cunixa.cc.columbia.edu (Douglas A Scott)
Organization: Columbia University
References: <kc5F2US00WBMI2sFIB@andrew.cmu.edu> <HARDY.91Apr25224449@golem.ps.uci.edu>
Date: Sun, 28 Apr 1991 20:39:59 GMT

For times when I need to just kill the entire X apparatus, when it gets stuck,
I just wrote the following script, which I set to setuid root:

#!/bin/sh
kill -9 `ps aux | grep 'X -MachLaunch' | grep -v grep | awk '{print $2}'`
kill -9 `ps aux | grep XNeXT | grep -v grep | awk '{print $2}'`
sleep 10
showcurs

This kills off everything and lets you start over.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Douglas Scott          Columbia University Computer Music Studio 
Internet: <doug@woof.columbia.edu> <das15@cunixa.cc.columbia.edu>
UUCP: ...!columbia!woof!zardoz!doug          Phone: (703)765-4771
