From owner-freebsd-questions Sun Aug 20 13:32:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id D420E37B42C for ; Sun, 20 Aug 2000 13:32:24 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7KKWM727594; Sun, 20 Aug 2000 13:32:22 -0700 (PDT) Date: Sun, 20 Aug 2000 13:32:22 -0700 From: Alfred Perlstein To: Ariel Burbaickij 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> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from Ariel.Burbaickij@mni.fh-giessen.de on Sun, Aug 20, 2000 at 05:39:38PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Ariel Burbaickij [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