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: Sebastian Döring
Subject: Re: How to pass variables from octave script to Ubuntu shell
Date: Mon, 30 Jan 2012 12:12:19 +0100

Hi ismael,

Of course I have though of this solution, but I also though that there might be a way that is more straight forward. Writing to and reading from a file seems a bit like working around the real problem to me.

Anyways, thanks for your answer ;).

Gruß
-Sebastian

Sent from my DEFY™

Am 30.01.2012 11:48 schrieb "Ismael Núñez-Riboni" <address@hidden>:
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

_______________________________________________
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]