home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / ultrix / 8953 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!abds9.aberdeen.chevron.com!emjga
  2. From: emjga@abds9.aberdeen.chevron.com (Matthew Garrett)
  3. Newsgroups: comp.unix.ultrix,chevron.unix
  4. Subject: Kill Session Manager on a Ultrix workstation
  5. Keywords: kill session manager
  6. Message-ID: <1992Dec18.142356@abds9.aberdeen.chevron.com>
  7. Date: 18 Dec 92 14:23:56 GMT
  8. Sender: news@nntpserver.chevron.com (USENET News System)
  9. Reply-To: emjga@aberdeen.chevron.com
  10. Organization: Chevron (UK) Ltd.
  11. Lines: 20
  12. Bcc: emjga@aberdeen.chevron.com
  13. Disclaimer: The opinions expressed are mine; not those of        
  14.             the company I work for.
  15.  
  16. I would like to be able to kill the Session Manager and all its 
  17. sup-process without having to click on the Session manager window
  18. and select the quit option.
  19.  
  20. Currently I have a small script called xsmkill to do this.
  21. #!/bin/csh
  22. set x = `ps -aux | grep $USER | grep dxsession | awk '{print $2}'`
  23. kill -9 $x
  24.  
  25. Does any body have a better way of doing this.?
  26.  
  27. My Hardware/software is:
  28. DecStation 5000/25
  29. Ultrix 4.2a
  30.  
  31. -- 
  32.                             Matthew Garrett 
  33.                            Chevron (UK) Ltd.
  34.    Ninian House, Crawpeel Road, Altens, Aberdeen, AB1 4LG, Scotland.
  35.    Internet: emjga@aberdeen.chevron.com       Phone: +44 224 242652
  36.