[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: saving xterm scrolling data to file



According to Oliver Lupton,
> On Wed, 11 Jan 2006 17:14:55 -0500 (EST)
> brownh@hartford-hwp.com (Haines Brown) wrote:
> 
> > When I run a command with debug in xterm, a lot of info scrolls
> > past. How can I save this to a file? All I get is how to debug
> > the debug message, not the debuging information itself, which just
> > scrolls quickly by in the terminal:
> > 
> >   For debugging messages, please use the --debug option.
> >   Debugging messages may help finding a solution to your problem.
> >   If you intend to send any error or debug messages to the gphoto
> >   developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
> >   gphoto2 as follows:
> > 
> >     env LANG=C gphoto2 --debug --debug --debug -f "/opt/tmp/camera" -P
> > 
> >   Please make sure there is sufficient quoting around the arguments.
> > 
> > I vaguely recall there is a utility to capture input to the terminal
> > to file.
> > 
> 
> If you're using bash as a shell (and probably others too)
> 
> command > /file/to/direct/output.to
> 
> or if you want stderr to go to the file as well:
> 
> command 2>&1 > /file/to/direct/output.to

Or if you want to see it *and* send it to a file, pipe it to
tee.

T



Reply to: