From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user-return-94858-arch-gentoo-user=gentoo.org@lists.gentoo.org>
Received: (qmail 10584 invoked from network); 5 Dec 2004 15:08:35 +0000
Received: from smtp.gentoo.org (156.56.111.197)
  by lists.gentoo.org with AES256-SHA encrypted SMTP; 5 Dec 2004 15:08:35 +0000
Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org)
	by smtp.gentoo.org with esmtp (Exim 4.41)
	id 1Cay03-0003qV-Kq
	for arch-gentoo-user@lists.gentoo.org; Sun, 05 Dec 2004 15:08:35 +0000
Received: (qmail 17896 invoked by uid 89); 5 Dec 2004 15:08:20 +0000
Mailing-List: contact gentoo-user-help@gentoo.org; run by ezmlm
Precedence: bulk
List-Post: <mailto:gentoo-user@gentoo.org>
List-Help: <mailto:gentoo-user-help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user-unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user-subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-BeenThere: gentoo-user@gentoo.org
Received: (qmail 19879 invoked from network); 5 Dec 2004 15:08:19 +0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
        b=Jty1xw6SERLSAZyA6N/tLo8xePeBZhZg0MkgfXZJvzhCmnilWwP3n/R3MxOesZ2+GSeXoOBAVBdgMvuGJ+qO6nSzeiT95mpyPcceMgzdPvjeKoJnVRWRoT1DyzmnTFSCfWRnS3xJi+Io6J29Q4NO3PNWDJjnHsx+Jp9BqWCaCog=
Message-ID: <e00942e404120507082488c812@mail.gmail.com>
Date: Sun, 5 Dec 2004 08:08:18 -0700
From: Collins Richey <crichey@gmail.com>
Reply-To: Collins Richey <crichey@gmail.com>
To: gentoo-user@lists.gentoo.org
In-Reply-To: <41B2B958.3090800@ramshacklestudios.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
References: <9acccfe5041204133432d7a3e@mail.gmail.com>
	 <41B24037.1050901@ramshacklestudios.com>
	 <e00942e40412041622161656c4@mail.gmail.com>
	 <41B2B958.3090800@ramshacklestudios.com>
Subject: Re: [gentoo-user] Can a script tell if it's running under X?
X-Archives-Salt: 0d7e8d04-abb5-48b0-a2a6-f0ac25416d0d
X-Archives-Hash: 4d9c349208dd2b1bfc997efd5eb845b2

On Sat, 04 Dec 2004 23:31:36 -0800, Peter Gordon
<admin@ramshacklestudios.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Collins Richey wrote:
> | For the normal non-root user case, this would be '/sbin/pidof X',
> | unless you have monkeyed with the standard $PATH setup.
> 
> What do you mean? I have done nothing with my $PATH and let Portage handle it as
> needed. On my system, /usr/bin/pidof is a symlink to /bin/pidof
> 
> /home/peter $ ls -al `which pidof`
> lrwxrwxrwx  1 root root 10 Apr  9  2004 /usr/bin/pidof -> /bin/pidof
> 

Sorry for the confusion. I was running from a Fedora Core 3 system to
check out what many local users here are experiencing (nothing
expecially good, except that xscreensaver runs ok, whereas it fails on
my gentoo system). Apparently Red Hat (and some other systems) have
/sbin/pidof. 'which pidof' from a normal user finds nothing.

-- 
 Collins

--
gentoo-user@gentoo.org mailing list