Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2001 07:48:58 -0400
From:      Jason Vervlied <jvervlied@boca.verio.net>
To:        Alex Dyas <adyas@twowaytv.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: xterm -exec question
Message-ID:  <20010918114912.A245237B40C@hub.freebsd.org>
In-Reply-To: <20010918123643.S1269-100000@>
References:  <20010918123643.S1269-100000@>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010918114912.A245237B40C>