Date: Wed, 29 Dec 1999 01:09:28 -0800 (PST) From: Annelise Anderson <andrsn@andrsn.stanford.edu> 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: <Pine.BSF.4.10.9912290104500.28910-100000@andrsn.stanford.edu> In-Reply-To: <19991228200214.10498.qmail@web121.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912290104500.28910-100000>