Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!cernvax!unizh!meyer From: meyer@unizh.UUCP (Urs Meyer) Newsgroups: comp.sys.sgi Subject: Re: Windows Message-ID: <298@unizh.UUCP> Date: 22 May 89 11:30:28 GMT References: <8905171545.AA00615@snow-white.merit-tech.com> Sender: Reply-To: meyer@gorgo.UUCP (Urs Meyer) Organization: Inst. fuer Informatik, Univ. Zuerich, Switzerland Lines: 51 In article <8905171545.AA00615@snow-white.merit-tech.com> goss@SNOW-WHITE.MERIT-TECH.COM.UUCP writes: > >There is a way to run graphics programs on the 4D under release 3.1 >without logging in at the console (for example, from another terminal): > > 1) Execute the command "/etc/gl/restartgl". This will start > the window manager at the console, running as your user ID > (make sure you logout or kill the window manager when > you're done). You will need to wait a few seconds for > it to load, as you would if you had logged in at the > console itself. > > 2) Run your graphics programs. > > 3) When done, you can get rid of the window manager doing a > "ps -ef" command to find process "/etc/gl/grcond", and > then killing that process (or you can logout at the console > itself). > >I've tried this on a 4D/60T, but it will probably work on any IRIS >running software release 3.1. It's not the most convenient procedure >in the world, but it will let you do what you want to do. > >Mike Goss, Merit Technology Inc. Be careful to delete every process you'd created. There is at least a wsh and csh hanging around. The following shell script works on 3.1C and did work on 3.0D, as well as on a 4D/20G and 4D/70GT: /etc/gl/grcond & sleep 60 grcpid=`ps -fu $LOGNAME |grep '/etc/gl/grcond' |grep -v grep |awk '{print $2}'` wshpid=`ps -fu $LOGNAME |grep 'wsh.*grconc' |grep -v grep |awk '{print $2}'` cshpid=`ps -fu $LOGNAME |grep $wshpid |grep csh |grep -v grep |awk '{print $2}'` your program sleep 5 kill -9 $cshpid # killing the csh will also get rid of the wsh sleep 5 kill $grcpid # no kill -9 here finding the right process id's is not very elegant but it works. --- Urs Meyer meyer@ifi.unizh.ch [ @relay.cs.net ] University of Zurich, {uunet,...}!mcvax!cernvax!unizh!meyer Dept. of Computer Science, K114930@CZHRZU1A.BITNET CH-8057 Zurich