Date: Mon, 8 Jun 2009 23:12:23 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Steven Schlansker <scs@eecs.berkeley.edu> Cc: freebsd-questions@freebsd.org, Lord Of Hyphens <lordofhyphens@gmail.com>, Daniel Underwood <djuatdelta@gmail.com> Subject: Re: Reproduce previous stdout output without running previous command Message-ID: <20090609041223.GB56070@dan.emsphone.com> In-Reply-To: <9FACF948-286D-40BC-9471-74CC1D5580E9@eecs.berkeley.edu> References: <b6c05a470906082044l69616b2h531adaa1fdf9f0e@mail.gmail.com> <b0442c260906082048u6deeb5a8v44077bf92afc58dc@mail.gmail.com> <9FACF948-286D-40BC-9471-74CC1D5580E9@eecs.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <djuatdelta@gmail.com > > >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090609041223.GB56070>