Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu From: farshid@ccwf.cc.utexas.edu (Farshid Arman) Newsgroups: comp.unix.aix Subject: Re: logging off from an Xstation 120 (a possible solution???) Message-ID: <49131@ut-emx.uucp> Date: 17 May 91 05:54:31 GMT References: <91135.164341CALT@SLACVM.SLAC.STANFORD.EDU> <763@rufus.UUCP> <91136.110343CALT@SLACVM.SLAC.STANFORD.EDU> Sender: news@ut-emx.uucp Reply-To: farshid@ccwf.cc.utexas.edu (Farshid Arman) Organization: The University of Texas at Austin, Electrical Engineering Lines: 38 regrading the problem of logging out of the X-station, I came up with a solution which has worked for us pretty well (we have 120's and run mwm). In the .login file I put the following . . . if ($TERM == hft) then open xinit && logout else if($?XSTATION) then .mwm_startup >! .$XSTATION logout . . . in the shell script '.mwm_start' I have all the aixterm, xclock, ... calls and the process id's are saved in the file .$XSTATION. The initial window is killed right after login!! Then at logout time, chosen in the menu, the following is executed . . . set PS=`cat ~/.$XSTATION | awk '{print $2}'` /bin/rm ~/.$XSTATION /bin/kill -9 $PS . . . which just kills the process. Ofcourse all processes that are created after the initial startup have to be appended to the file .$XSTATION. I think we use aliases for that. As I said this works for us. Hope is useful. Farshid