From owner-freebsd-questions Tue Dec 28 12:24: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by hub.freebsd.org (Postfix) with ESMTP id 58D2A15522 for ; Tue, 28 Dec 1999 12:23:42 -0800 (PST) (envelope-from papalia@udel.edu) Received: from morgaine (nyf-ny8-41.ix.netcom.com [198.211.17.233]) by wondermutt.net (8.9.3/8.9.3) with SMTP id PAA03004; Tue, 28 Dec 1999 15:33:09 -0500 (EST) (envelope-from papalia@udel.edu) Message-Id: <4.1.19991228151945.009e0440@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 28 Dec 1999 15:22:10 -0500 To: Joss Roots , freebsd-questions@FreeBSD.ORG From: John Subject: Re: how to redirect output to a file, and then tail it ? In-Reply-To: <19991228200214.10498.qmail@web121.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Your best bet is to use the "script" command... Example: merlin# script /var/log/filename Script started, output file is /var/log/filename merlin# <---snip output of whatever command you issued--> merlin# exit merlin# exit Script done, output file is /var/log/filename merlin# voila. Works great actually, and then you don't need to worry about redirects. --John >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message