From owner-freebsd-questions Wed Dec 29 1:15:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (Postfix) with ESMTP id 35D02150A2 for ; Wed, 29 Dec 1999 01:15:04 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id BAA28920; Wed, 29 Dec 1999 01:09:28 -0800 (PST) Date: Wed, 29 Dec 1999 01:09:28 -0800 (PST) From: Annelise Anderson To: Joss Roots Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to redirect output to a file, and then tail it ? In-Reply-To: <19991228200214.10498.qmail@web121.yahoomail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In csh and tcsh and also zsh, you can do: make world >& world.out& which directs stderr to the same place as stdout and then sends them both to the file world.out and puts the whole thing in the background. You can then do tail -f world.out to see what's happening, and exit the tail process with Ctrl C. So there are a number of ways to do it. Annelise On Tue, 28 Dec 1999, Joss Roots wrote: > hi there, > this have been mentioned before somewhere > but I seem to have lost it. > > 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 > > I think something like 2>1 & not sure of the > exact way though, any help ? > thanks > > > ===== > MAY THE FORCE BE WITH YOU. > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://messenger.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message