home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.aix:11630 comp.unix.admin:6221
- Newsgroups: comp.unix.aix,comp.unix.admin
- 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
- From: barr@pop.psu.edu (David Barr)
- Subject: Re: determining if you are in an x-windows session
- Message-ID: <dd02Hz8iya@atlantis.psu.edu>
- Sender: news@atlantis.psu.edu (Usenet)
- Organization: Penn State Population Research Institute
- References: <1992Nov16.132809.10942@wap.oau.org>
- Distribution: usa
- Date: Mon, 16 Nov 92 23:38:56 GMT
- Lines: 10
-
- 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.
-
- Check $DISPLAY
-
- --Dave
- --
- System Administrator, Population Research Institute barr@pop.psu.edu
-