help-octave
[Top][All Lists]
Advanced

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

Re: where is the prompt: 0,1,2?


From: Paul Kienzle
Subject: Re: where is the prompt: 0,1,2?
Date: Mon, 5 Mar 2001 07:45:38 +0000
User-agent: Mutt/1.2.5i

In the command line documentation:

        octave --help

it says:

        Usage: octave [options]
        ...
          --interactive, -i       Force interactive behavior.
        ...

so try

        octave > tmp
        a=rand(4)
        24355
        exit
        cat tmp

Can it do this? Yes. See the man page for isatty

        man isatty

Paul Kienzle
address@hidden

On Mon, Mar 05, 2001 at 01:18:21PM +0100, Daniel Heiserer wrote:
> Hi,
> 
> where does the octave prompt come out?
> 
> I thought that it is on stdout (1).
> But when I run octave like this, and then write some stuff like:
> ------------------------------------------------------
> octave > tmp
> a=rand(4)
> 24355
> exit
> cat tmp
> GNU Octave, version 2.0.14 (mips-sgi-irix6.4).
> Copyright (C) 1996, 1997, 1998, 1999 John W. Eaton.
> This is free software with ABSOLUTELY NO WARRANTY.
> For details, type `warranty'.
> 
> a =
> 
>   0.315864  0.086636  0.656885  0.107647
>   0.304482  0.366489  0.413641  0.734519
>   0.069920  0.615740  0.044747  0.280804
>   0.754230  0.330850  0.924574  0.149772
> 
> ans = 24355
> ------------------------------------------------------
> So the prompt neither appears on the terminal anymore
> which is quite clear when it is on stdout(1), but
> then it should be redirected into the file tmp.
> 
> So on which filedescriptor is the prompt?
> Or does octave not output a prompt once it knows
> eihter stdin/stdout are redirected somehow.
> but can octave know that, and if how?
> 
> -- 
> Mit freundlichen Gruessen
>                                  Daniel Heiserer
> --------------------------------------------------------------
> Dipl.-Phys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen
> Abteilung EK-20
> Tel.: 089-382-21187, Fax.: 089-382-42820
> mailto:address@hidden 
> Lageplan Standort FIZ:
> http://www.stadtplandienst.de/query?ORT=M&STR=Knorrstr.&HNR=147
> 
> 
> 
> -------------------------------------------------------------
> 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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]