home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.aix:11635 comp.unix.admin:6225
- Newsgroups: comp.unix.aix,comp.unix.admin
- Path: sparky!uunet!nih-csl.dcrt.nih.gov!helix.nih.gov!rvenable
- From: rvenable@helix.nih.gov (Richard M. Venable)
- Subject: Re: determining if you are in an x-windows session
- Message-ID: <1992Nov17.060449.14489@alw.nih.gov>
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Organization: National Institutes of Health, Bethesda
- References: <1992Nov16.132809.10942@wap.oau.org>
- Distribution: usa
- Date: Tue, 17 Nov 1992 06:04:49 GMT
- Lines: 16
-
- In article <1992Nov16.132809.10942@wap.oau.org> bdixon@wap.oau.org (Bill Dixon) writes:
- >Very simply: is there any way to tell whether you are executing a program
- >from within an x-windows session, as opposed to an ascii terminal? The
- >TERM environment variable may or may not be set to aixterm.
-
- On some systems your 'tty' device will be different for different access
- paths, e.g. console, network, or serial line. Also, if X has been properly
- initialized, the env var DISPLAY will be set to point to your display host.
-
-
- -----------------------------------------------------------------
- Rick Venable (O O) | "Back off, I'm a scientist."
- FDA/CBER Biophysics Lab )|( | -- Bill Murray in
- rvenable@helix.nih.gov (=) | 'Ghostbusters'
- -----------------------------------------------------------------
-
-