help-octave
[Top][All Lists]
Advanced

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

Re: Share variables between Shell and Octave


From: Martin Helm
Subject: Re: Share variables between Shell and Octave
Date: Mon, 22 Nov 2010 18:44:04 +0100
User-agent: KMail/1.13.5 (Linux/2.6.34.7-0.5-desktop; KDE/4.5.3; x86_64; ; )

Am Montag, 22. November 2010, 13:03:35 schrieb 张彤:
> Hi, every body!
> I have a question that is it possible to share variable between Shell
> and Octave, and if so, HOW?
> Thanks!
> 
Not sure if that is what you want but look at the getenv and setenv commands.

setenv("TEST", "xyz") to set a shell variable and getenv("TEST") to get the 
value.
You can test with e.g. getenv("PATH")




reply via email to

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