[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to redirect output in octave?
From: |
Paul Laub |
Subject: |
Re: How to redirect output in octave? |
Date: |
Mon, 4 Apr 2005 13:59:33 -0700 |
Edward,
Use the PAGER variable to route output. It works for stdout, though I
don't know about stderr. Do this --
PAGER="/dev/null";
page_screen_output = 1;
page_output_immediately = 1;
or, instead, simply run your octave script noninteractively
octave input.txt > /dev/null
Paul Laub
On Apr 3, 2005 6:51 PM, Edward C. Jones <address@hidden> wrote:
> I would like to redirect the output of octave to the bit bucket. Here is
> my attempt:
>
> stdout_real = stdout;
> stdout = fopen("/dev/null", "wb");
> printf("XXX\n");
> fclose(stdout);
> stdout = stdout_real;
>
> "XXX" is still printed. How do I redirect stdout or stderr?
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
>
-------------------------------------------------------------
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
-------------------------------------------------------------