Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user@g.o
From: Collins Richey <crichey@...>
Subject: Re: Can a script tell if it's running under X?
Date: Sun, 5 Dec 2004 08:08:18 -0700
On Sat, 04 Dec 2004 23:31:36 -0800, Peter Gordon
<admin@...> 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@g.o mailing list

References:
Can a script tell if it's running under X?
-- Kevin O'Gorman
Re: Can a script tell if it's running under X?
-- Peter Gordon
Re: Can a script tell if it's running under X?
-- Collins Richey
Re: Can a script tell if it's running under X?
-- Peter Gordon
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Can a script tell if it's running under X?
Next by thread:
Re: Can a script tell if it's running under X?
Previous by date:
Re: Gentoo with Kernel 2.6, GCC 3.4 and NPTL?
Next by date:
kernel 2.6.9r9 v4l missing


Updated May 04, 2012

Summary: Archive of the gentoo-user mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.