help-octave
[Top][All Lists]
Advanced

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

Re: How to pass variables from octave script to Ubuntu shell


From: Ismael Núñez-Riboni
Subject: Re: How to pass variables from octave script to Ubuntu shell
Date: Mon, 30 Jan 2012 11:47:22 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0

Moin Sebastian, why don't you simply write the variable to disk from Octave (ascii) and then read it under Python? It seems to me the easiest way... Gruss, Ismael.

On 01/30/2012 11:07 AM, Sebastian Döring wrote:
Hello list,

I am using a bash script to execute several other scripts including an
octave script.
The bash script simply calls the octave script with the following
command: "octave --silent --eval "myfile(\"$variable\")".

My problem is now, that I want the octave script to return a certain
variable it has calculated during its execution, back to the shell, so
that I can use it further and pass it again to another script (e.g. python).

I have searched google a lot about this and have also found a topic from
this very mailing list (about "setenv"/"getenv"), but I don really seem
to get it right.

I would really appreciate if someone gave me a hint on how to use these
commands, or maybe how to solve my problem in another way.


Thanks in advance.

-Sebastian


_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



reply via email to

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