From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: Re: GNU emacs locks files modified with CVS Date: Wed, 17 Dec 2003 14:03:49 -0500 (EST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3FE083D0.6060004@yahoo.com> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1071687942 26688 80.91.224.253 (17 Dec 2003 19:05:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2003 19:05:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 20:05:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AWgzL-0001y1-00 for ; Wed, 17 Dec 2003 20:05:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWhwl-0002rP-UF for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Dec 2003 15:07:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AWhw4-0002HR-J5 for help-gnu-emacs@gnu.org; Wed, 17 Dec 2003 15:06:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AWhv7-0000EV-Hh for help-gnu-emacs@gnu.org; Wed, 17 Dec 2003 15:05:57 -0500 Original-Received: from [216.254.0.205] (helo=mail5.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AWhv5-00006v-3H for help-gnu-emacs@gnu.org; Wed, 17 Dec 2003 15:05:19 -0500 Original-Received: (qmail 11035 invoked from network); 17 Dec 2003 19:03:51 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 17 Dec 2003 19:03:51 -0000 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <3FE083D0.6060004@yahoo.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15384 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15384 I wrote that a long time ago when my awk skills were about nil. This was the first time looking at it again in a long, long while. But thanks. ken At 09:26 (UTC-0700) on Wed, 17 Dec 2003 Kevin Rodgers said: = gebser@speakeasy.net wrote: = = > Of course everyone can set up their systems however they wish, but I = > use: = > = > export DISPLAY=$(who -lum|awk -F '(' '{print $2}'|awk -F ')' '{print $1}'):0 = > = > in my ~/.bashrc and have no problem logging in and/or running remotely = > whatever X apps I want. = = = I know this isn't comp.unix.shell, but that pipe can be simplified a little by = passing a regex as awk's field separator: = = = export DISPLAY=$(who -lum | awk -F'[()]' '{print $(NF-1)}'):0 = =