From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 04:12:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07ABF106566C for ; Tue, 9 Jun 2009 04:12:25 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id AF0648FC12 for ; Tue, 9 Jun 2009 04:12:24 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n594CNRL028453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Jun 2009 23:12:24 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n594CNSZ056648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Jun 2009 23:12:23 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n594CN5O056647; Mon, 8 Jun 2009 23:12:23 -0500 (CDT) (envelope-from dan) Date: Mon, 8 Jun 2009 23:12:23 -0500 From: Dan Nelson To: Steven Schlansker Message-ID: <20090609041223.GB56070@dan.emsphone.com> References: <9FACF948-286D-40BC-9471-74CC1D5580E9@eecs.berkeley.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9FACF948-286D-40BC-9471-74CC1D5580E9@eecs.berkeley.edu> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Mon, 08 Jun 2009 23:12:24 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org, Lord Of Hyphens , Daniel Underwood Subject: Re: Reproduce previous stdout output without running previous command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 04:12:25 -0000 In the last episode (Jun 08), Steven Schlansker said: > On Jun 8, 2009, at 8:48 PM, Lord Of Hyphens wrote: > > On Mon, Jun 8, 2009 at 10:44 PM, Daniel Underwood > >wrote: > >> > >> $ fdupes -r ~/directorywithlotsoflargefiles > >> > >> (.....lots of output, woops, should have sent to a text file!....) > >> > >> $ output[1] >> ~/textfile.txt > > > > Check the manpage for tee. That should give you a solution you're > > looking for. > > I think the intention of the original question was for the case where you > have forgotten to set up a pipe/redirection properly before starting the > long- running command. Tee would work fine if you have the foresight to > use it... How much output are you expecting to capture? You can configure an arbitrary number of syscons history lines or screen scrollback lines. I'm sure xterm can be configured similarly, but I can't find it from a quick skim of the manpage. I have syscons set to 1024 lines and screen set to 10240 lines myself. You can use vidcontrol -HP to dump syscons history if you need to copy more than you can select with the mouse on a single page, and screen has a whole sub-interface for interacting with its scrollback. -- Dan Nelson dnelson@allantgroup.com