9fans archive / 2000 / 11 / 3 /    prev next

From: Lucio De Re <lucio@pro...>
Subject: Re: [9fans] usage of CPU server
Date: Wed, 1 Nov 2000 10:21:19 +0200

On Wed, Nov 01, 2000 at 04:27:17PM +0000, okamoto@gra... wrote:
> 
> I tried following two.
> (1) rx diabase 'du / &' >/usr/okamoto/ken
> (2) rx diabase 'du / & >/usr/okamoto/ken'
> 
> In case (1), the output upto the time I logged out is wrote to
> /usr/okamoto/ken, and in case (2), no output is kept.
> 
The right one is: rx diabase 'du / >/usr/okamoto/ken &'

the "&" actually terminates the command, so the redirection occurs as a
separate, later command.  The reason it works in the first instance is
more obscure :-)  It is because the "rx" command terminates when you log
out.

++L