On Sat, 7 Jan 2017, Sven Schreiber wrote:
Am 06.01.2017 um 23:23 schrieb Riccardo (Jack) Lucchetti:
> On Fri, 6 Jan 2017, Sven Schreiber wrote:
>
>> When I do "! gretlcli.exe -b testscript.inp > testout.out",
>> (that's on Windows obviously) I get the expected testout.out file. But
>> when I instead use "launch", the output file doesn't seem to get
>> created anywhere.
>> I'll test with the next snapshot.
>
> Of course your request makes sense, but just out of curiosity: why would
> one run gretlcli from inside gretl?
>
I had an idea last night for a little function that could make it a little
easier to run the same script in parallel with different parameter values.
That's why I need "launch" instead of "!", because as per the doc
"!" would
mean that the main gretl process would wait each time, destroying the
parallelism.
So this is an "embarassingly trivial" type of parallelism, where each worker
gets its own gretlcli instance/process.
Sorry if I ask, but are you aware of the getenv()/ngetenv() functions?
Actually, we also have the "scriptopt" trick, although I don't think
it's
documented anywhere. As in:
<shell>
jack@asus-nb:~$ gretlcli -q --scriptopt=2.7181718
gretl version 2017a-git
"help" gives a list of commands
Type "open filename" to open a data set
? eval log(scriptopt)
0.99995952
?
</shell>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------