From owner-freebsd-questions Tue Sep 18 4:49:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rapidsite.net (mail.rapidsite.net [207.158.192.62]) by hub.freebsd.org (Postfix) with SMTP id A245237B40C for ; Tue, 18 Sep 2001 04:49:12 -0700 (PDT) Received: from r00.nat.boca.verio.net (208.55.254.110) by mail.rapidsite.net (RS ver 1.0.60s) with SMTP id 022943110; Tue, 18 Sep 2001 07:48:58 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: Jason Vervlied To: Alex Dyas Subject: Re: xterm -exec question Date: Tue, 18 Sep 2001 07:48:58 -0400 X-Mailer: KMail [version 1.3] References: <20010918123643.S1269-100000@> In-Reply-To: <20010918123643.S1269-100000@> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Loop-Detect: 1 Message-Id: <20010918114912.A245237B40C@hub.freebsd.org> 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 Tuesday 18 September 2001 07:40 am, you wrote: > i'm trying to do the following : > > 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. > Run it out of a shell script e.g. ------------------------- #/bin/sh tail -f foo.txt | grep bar -------------------------- xterm --exec foo.sh -- Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message