From owner-freebsd-questions Thu Jul 6 8:43:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 7AABF37C448 for ; Thu, 6 Jul 2000 08:43:23 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id KAA03435; Thu, 6 Jul 2000 10:42:03 -0500 (CDT) (envelope-from dan) Date: Thu, 6 Jul 2000 10:42:03 -0500 From: Dan Nelson To: j mckitrick Cc: questions@FreeBSD.ORG Subject: Re: pop up notice for x Message-ID: <20000706104203.A2961@dan.emsphone.com> References: <20000706155756.A9796@dogma.freebsd-uk.eu.org> <20000706100348.C20588@dan.emsphone.com> <20000706163816.C9873@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.4i In-Reply-To: <20000706163816.C9873@dogma.freebsd-uk.eu.org>; from "j mckitrick" on Thu Jul 6 16:38:16 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jul 06), j mckitrick said: > On Thu, Jul 06, 2000 at 10:03:48AM -0500, Dan Nelson wrote: > > man xmessage > > okay, so far so good. the script i am using works when i call it > from an xterm. and the 'logger' statement works when it is called > from a console. but when called from a console (actually, by an APM > script that detects when the battery is low) is doesn't show the > message in X, only on the console. do i need to direct it to X or do > something special to get it to work? If you know you only have one X session running at any one time, "export DISPLAY=:0.0" should work. If you're running multiple X servers (say under VNC), they won't get the popup. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message