[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing terminal output to a file
From: |
Geordie McBain |
Subject: |
Re: Writing terminal output to a file |
Date: |
Wed, 9 Mar 2005 11:37:25 +1100 |
User-agent: |
Mutt/1.5.6+20040907i |
On Tue, Mar 08, 2005 at 09:31:44AM -0600, Edward C. Jones wrote:
> I have an up-to-date Debian sid system on a PC. I have installedDebian
> packages "octave2.1", version 2.1.67-1 and "octave-forge", version
> 2004.11.16-6. I use the bash shell.
>
> I am currently installing into Octave a wavelet program called WaveLab.
> As part of this, I need to run, from Octave, a command, "startup", that
> calls gcc many times. The calls to gcc are output to the terminal. I
> would like to write a copy of this output to a file (like "tee") or
> redirect the output to a file (like "&>"). In general, how can I put in
> a file a copy of everything that Octave sends to the terminal (including
> stuff put through the pager)?
Does diary do what you want? For example:
octave> diary "octave_diary.txt"
octave> version
ans = 2.1.67
octave> diary off
octave> system ("cat octave_diary.txt");
octave> version
ans = 2.1.67
octave> diary off
octave>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------