Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 1999 10:03:29 +0600
From:      Mojahedul Hoque Abul Hasanat <mojahed@citechco.net>
To:        Joss Roots <osiris2002@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to redirect output to a file, and then tail it ?
Message-ID:  <19991229100329.A322@mars.cosmos.net>
In-Reply-To: <19991228200214.10498.qmail@web121.yahoomail.com>
References:  <19991228200214.10498.qmail@web121.yahoomail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 28, 1999 at 12:02:14PM -0800, Joss Roots wrote:
> 
> if I want to send the output of an operation
> like 'make world' to a file > makeworld.log
> 
> then be able to tail makeworld.log
> to see what is happening there, what is the
> operand or directive to use

How about:

  make world 2>&1 | tee makeworld.log

stdin and stderr will go to the log file, as well as the console.
This is for the bash shell.

-- 
Mojahed


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?19991229100329.A322>