help-octave
[Top][All Lists]
Advanced

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

Re: Tricks to make the m-code invisible


From: Sergei Steshenko
Subject: Re: Tricks to make the m-code invisible
Date: Sat, 28 Dec 2019 00:59:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1


On 27/12/2019 23:19, GoSim wrote:
I am running Octave as a subprocess in my system identification app and want
to keep the m-files hidden because my new methods are world leading and I
don't want them copied by competitors. So I am asking for ideas on how to do
that. My only idea so far is to put the m-file as a string in my java
program and create the m-file with this string and then run octave and
directly when octave have started delete the file. I think Octave reads the
whole file and doesn't need the file after it has been read once. Any other
and hopefully better ideas? Thanks.



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



This is a hint for you:

"

sergei@sergei-dt:/mnt/althome/sergei$ echo " for ii=1:3 disp(ii); end" | octave
 1
 2
 3
sergei@sergei-dt:/mnt/althome/sergei$

".


I.e. Octave can execute commands from stdin. I.e. a .m file isn't even necessary.


--Sergei.



reply via email to

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