Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2000 13:32:22 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Is it possible to discriminate between shell used in CLI and XWindowmode ?
Message-ID:  <20000820133222.D4854@fw.wintelcom.net>
In-Reply-To: <Pine.GSO.4.10.10008201737510.5570-100000@sun34>; from Ariel.Burbaickij@mni.fh-giessen.de on Sun, Aug 20, 2000 at 05:39:38PM %2B0200
References:  <Pine.GSO.4.10.10008201737510.5570-100000@sun34>

next in thread | previous in thread | raw e-mail | index | archive | help
* Ariel Burbaickij <Ariel.Burbaickij@mni.fh-giessen.de> [000820 08:38] wrote:
> Concrete: I want to leave csh  as root shell on the console and work as
> root with bash in X Window is it somehow managable ?

Figure out how to test if the DISPLAY variable is set in your enviornment,
if it is then try to exec bash.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000820133222.D4854>