On Sat, 7 Jan 2017, Sven Schreiber wrote:
Am 07.01.2017 um 11:13 schrieb Riccardo (Jack) Lucchetti:
> On Sat, 7 Jan 2017, Sven Schreiber wrote:
>> 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
If that's just for a single scalar it's not enough I'm afraid -- although I
guess one could simply use it as an index type value.
About getenv(): I had looked at it, but AFAICS it would only give me the home
directory, not the gretl CWD.
Sorry, I wasn't clear. I meant something like this:
<shell>
jack@asus-nb:~$ X="{1,2,3}" a=11 gretlcli -q
gretl version 2017a-git
Disabling OpenBLAS multi-threading (OpenMP/pthreads collision)
"help" gives a list of commands
Type "open filename" to open a data set
? a = ngetenv("a")
Generated scalar a = 11
? sx = getenv("X")
Generated string sx
? X = @sx
Generated matrix X
</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
-------------------------------------------------------