From owner-freebsd-questions Tue Sep 18 4:47:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.102.114]) by hub.freebsd.org (Postfix) with ESMTP id 019B137B419 for ; Tue, 18 Sep 2001 04:47:21 -0700 (PDT) Received: (from mph@localhost) by wopr.caltech.edu (8.11.1/8.11.0) id f8IBlFK05561; Tue, 18 Sep 2001 04:47:15 -0700 (PDT) (envelope-from mph) Date: Tue, 18 Sep 2001 04:47:15 -0700 From: Matthew Hunt To: Alex Dyas Cc: freebsd-questions@FreeBSD.ORG Subject: Re: xterm -exec question Message-ID: <20010918044714.A5527@wopr.caltech.edu> References: <20010918123643.S1269-100000@> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010918123643.S1269-100000@>; from adyas@twowaytv.com on Tue, Sep 18, 2001 at 12:40:52PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Sep 18, 2001 at 12:40:52PM +0100, Alex Dyas wrote: > xterm -exec tail -f foo.txt | grep -v bar > > however, the grep part seems to be interpreted outside the exec. the result is > that the exec happens, the the grep happens on it's own. i would like to be > able to run the whole thing, tail and grep all as part of the exec. xterm -exec sh -c 'tail -f foo.txt | grep -v bar' -- Matthew Hunt * Eight lanes of shimmering cement from http://www.pobox.com/~mph/ * here to Pasadena! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message