home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / admin / 6280 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!uakari.primate.wisc.edu!crdgw1!ge-dab!puma.ATL.GE.COM!rsnyder
  2. From: rsnyder@atl.ge.com (Bob Snyder)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Finding out if a windowing session is open
  5. Message-ID: <1992Sep11.143552.24544@puma.ATL.GE.COM>
  6. Date: 11 Sep 92 14:35:52 GMT
  7. Sender: news@puma.ATL.GE.COM (USENET News System)
  8. Organization: GE Aerospace, Advanced Technology Labs
  9. Lines: 14
  10.  
  11. I have the ARM security package, and am currently trying to set up the
  12. idlelockscreen feature.  I've changed the Shell script provided to handle both
  13. X and OpenWindows, but the script will die trying to lock a person who has
  14. logged in on console, but hasn't started up a windowing environment yet.
  15.  
  16. Is there an relatively easy way to find out if the person is running a
  17. windowing environment from a shell script?  I suppose I could make the script
  18. simply not return an error when the lockscreen/xlock fails, but I would prefer
  19. to handle the sityation intelligently rather then simply ignoring the problem.
  20.  
  21. Bob
  22. -- 
  23. Bob Snyder, Computing Services, GE Aerospace, Advanced Technology Labs
  24. rsnyder@atl.ge.com, (609) 866-6672, FAX: (609) 866-6397, DialComm 8*777-6672
  25.