[kepler-users] using string parameter in external execution actor
Chad Berkley
berkley at nceas.ucsb.edu
Thu Jun 11 14:24:17 PDT 2009
Hi Ufuk,
We haven't set a release date yet. I'm guessing it will be later in the
summer or in the fall, but that's just a guess. We'll have more
concrete dates after another project that requires Kepler is released at
the beginning of July.
chad
Ufuk Utku Turuncoglu wrote:
> Okay, it works and i am using Kepler developer tree. By the way, do you
> know that Is there any defined release date for next version of Kepler
> (2.0).
>
> Anyway, thanks for your help,
>
> --ufuk
>
> Christopher Brooks wrote:
>> Hi,
>> Do you have a small sample that illustrates the issue?
>>
>> I've attached a model that was run against the development version
>> of Kepler (*not* kepler-1.0.0).
>>
>> The model has an ExternalExecution actor that reads the value of
>> the environment parameter from an Parameter named
>> MyEnvironmentParameter. The ExternalExecution actor run the
>> "env" command, which for me, under Mac OS X, prints out the value
>> of the environment. This might not work under Windows, you could
>> try experimenting with the DOS "set" command.
>>
>> The Environment parameter is an array of Records, where in Ptolemy
>> a record has name=value pairs. The docs for environment
>> in ptolemy.actor.lib.Exec say:
>>
>> The environment in which to execute the command.
>> * This parameter is read each time the subprocess is started
>> * in fire(). Once the subprocess is running, this parameter is not
>> * read again until fire() is called again.
>> *
>> * <p>This parameter is an array of records that name an environment
>> * variable and the value for the value. The format is:</p>
>> * <pre>
>> * {{name = "<i>NAME1</i>", value = "<i>value1</i>"}...}
>> * </pre>
>> * Where <code><i>NAME1</i></code> is the name of the environment
>> * variable, and <code><i>value1</i></code> is the value.
>> * <p>For example <code>{{name = "PTII", value = "c:/ptII"}}</code>
>> * would set the value of the <code>PTII</code> to
>> <code>c:/ptII</code>.</p>
>> *
>> * <p>If the initial value of the parameter is <code>{{name="",
>> * value = ""}}</code>, then the environment from the calling or
>> parent
>> * process is used in the new command.</p>
>> *
>> * <p>Note that if this parameter sets any environment variable,
>> * then under Windows the other environment variables in the calling
>> * or parent process might not be passed to the subprocess. This
>> * behaviour could be platform or JVM dependent. When in doubt,
>> * try setting the <i>command</i> value to "env" to print out the
>> * environment.</p>
>>
>> If this doesn't help, please reply with a model. Also, let me
>> know if you are using Kepler-1.0.0 or the Kepler devel tree.
>>
>> _Christopher
>>
>> Ufuk Utku Turuncoglu wrote:
>>> Hi,
>>>
>>> I try to use string parameter in external execution actor's
>>> environment parameter but i got parsing error. Is there any way to
>>> use string parameter in that field? I try to put double dollar sign
>>> (that does not make sense in this example, but i want to try) at the
>>> beginning of the parameter name but it also gives parsing error.
>>>
>>> --ufuk
>>> _______________________________________________
>>> Kepler-users mailing list
>>> Kepler-users at kepler-project.org
>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>>
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
More information about the Kepler-users
mailing list