screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Am I running under X?


From: Dan Mahoney, System Admin
Subject: Re: Am I running under X?
Date: Thu, 28 Jul 2005 11:08:44 -0400 (EDT)

On Thu, 28 Jul 2005 address@hidden wrote:

How can I tell if I'm running under X in a shell script?  If I'm in X, I
want to start screen:  screen -m -c /my/config/file.  If I'm not under X,
I want to start without the -m.  It's an odd google to find the answer to
this question, so your wisdom is appreicated.

Check for the DISPLAY variable?

-Dan



-judd maltin


_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users


--

<Wrin> quick, somebody tell me the moon phase please?
<Dan_Wood> Wrin: Plummeting.

-Undernet #reboot, 9/11/01 (day of the WTC bombing)

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]