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

  1. Xref: sparky comp.unix.aix:11635 comp.unix.admin:6225
  2. Newsgroups: comp.unix.aix,comp.unix.admin
  3. Path: sparky!uunet!nih-csl.dcrt.nih.gov!helix.nih.gov!rvenable
  4. From: rvenable@helix.nih.gov (Richard M. Venable)
  5. Subject: Re: determining if you are in an x-windows session
  6. Message-ID: <1992Nov17.060449.14489@alw.nih.gov>
  7. Sender: postman@alw.nih.gov (AMDS Postmaster)
  8. Organization: National Institutes of Health, Bethesda
  9. References: <1992Nov16.132809.10942@wap.oau.org>
  10. Distribution: usa
  11. Date: Tue, 17 Nov 1992 06:04:49 GMT
  12. Lines: 16
  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. On some systems your 'tty' device will be different for different access
  20. paths, e.g. console, network, or serial line.  Also, if X has been properly
  21. initialized, the env var DISPLAY will be set to point to your display host.
  22.  
  23.  
  24. -----------------------------------------------------------------
  25.  Rick Venable                (O O) |  "Back off, I'm a scientist."
  26.  FDA/CBER Biophysics Lab      )|(  |        -- Bill Murray in  
  27.  rvenable@helix.nih.gov       (=)  |           'Ghostbusters'   
  28. -----------------------------------------------------------------
  29.  
  30.