🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #18691

Re: ¿Como saber si un script es llamado desde una sesión X?

#18691
From: AnimAlf
Date: Fri, 23 Jul 1999 00:00
22 lines
1369 bytes
Manuel =?iso-8859-1?Q?L=F3pez?= Moreno escribi�:
> 
> AnimAlf wrote:
> >
> > �Puedo hacerlo de otro modo?
> 
> Se me ocurre $TERM=xterm. Pero tampoco tiene porque funcionar siempre.
> Puedes cambiar el valor de $TERM sin problemas y estar o no en las X's.
> A no ser que el script se ejecute nada m�s abrir el terminal X.
> Lo mismo con la variable $DISPLAY.

S�, la variable DISPLAY funciona perfectamente para lo que quiero
conseguir. Adem�s si no estoy en una sesi�n de las X �sta ni siquera
existe, al igual que si avando una sesi�n

Gracias
------------------------------
AnimAlf    animalf@mixmail.com
http://www.fut.es/~acl/AnimAlf
Is the truth out there?

PublicPGPkeyID	0xB3B41215
Technical Details
Message-ID: <3797BC13.1B351E0A@tinet.fut.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3795DD90.DEBFEB34@thecoastguard.com> <379684DA.1CFAB299@mx2.redestb.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,bfe987c975a2a928
X-Google-Attributes: gidf86c8,public
From: AnimAlf <acl@tinet.fut.es>
Subject: Re: ¿Como saber si un script es llamado desde una  sesión X?
Date: 1999/07/23
Message-ID: <3797BC13.1B351E0A@tinet.fut.es>
X-Deja-AN: 504247799
Content-Transfer-Encoding: 8bit
References: <3795DD90.DEBFEB34@thecoastguard.com> <379684DA.1CFAB299@mx2.redestb.es>
X-Accept-Language: ca, es, en
Content-Type: text/plain; charset=iso-8859-1
Organization: Is the truth out there?
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion