home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11630 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  972 b 

  1. Xref: sparky comp.unix.aix:11630 comp.unix.admin:6221
  2. Newsgroups: comp.unix.aix,comp.unix.admin
  3. Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!uxa.ecn.bgu.edu!psuvax1!atlantis.psu.edu!barr
  4. From: barr@pop.psu.edu (David Barr)
  5. Subject: Re: determining if you are in an x-windows session
  6. Message-ID: <dd02Hz8iya@atlantis.psu.edu>
  7. Sender: news@atlantis.psu.edu (Usenet)
  8. Organization: Penn State Population Research Institute
  9. References: <1992Nov16.132809.10942@wap.oau.org>
  10. Distribution: usa
  11. Date: Mon, 16 Nov 92 23:38:56 GMT
  12. Lines: 10
  13.  
  14. In article <1992Nov16.132809.10942@wap.oau.org> bdixon@wap.oau.org (Bill Dixon) writes:
  15. >Very simply: is there any way to tell whether you are executing a program
  16. >from within an x-windows session, as opposed to an ascii terminal?  The
  17. >TERM environment variable may or may not be set to aixterm.
  18.  
  19. Check $DISPLAY
  20.  
  21. --Dave
  22. -- 
  23. System Administrator, Population Research Institute    barr@pop.psu.edu
  24.