From owner-freebsd-questions Tue Dec 28 20:22:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.citechco.net (mail.citechco.net [203.127.137.3]) by hub.freebsd.org (Postfix) with ESMTP id 7B62515095 for ; Tue, 28 Dec 1999 20:22:46 -0800 (PST) (envelope-from mojahed@citechco.net) Received: from mars.cosmos.net (ls2-27-198.citechco.net [203.127.137.198]) by mail.citechco.net (8.9.3/8.9.3) with ESMTP id KAA25588; Wed, 29 Dec 1999 10:20:17 +0600 (GMT+0600) Received: (from mojahed@localhost) by mars.cosmos.net (8.9.3/8.9.3) id KAA00450; Wed, 29 Dec 1999 10:03:29 +0600 (BDT) (envelope-from mojahed) Date: Wed, 29 Dec 1999 10:03:29 +0600 From: Mojahedul Hoque Abul Hasanat To: Joss Roots 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> References: <19991228200214.10498.qmail@web121.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991228200214.10498.qmail@web121.yahoomail.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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