[kepler-dev] External Execution Actor: Pls suggest

Christopher Brooks cxh at eecs.berkeley.edu
Mon May 4 15:00:44 PDT 2009


Hi Subhav,
Try using the full path to xyz.app as an argument to External Execution
Actor. Perhaps there is an issue with the path.

It could be that Kepler is being invoked with a path that is
different than the path you are getting with cmd.

I'm fairly certain External Execution Actor uses ptolemy.actor.lib.Exec.
See the documentation at
http://ptolemy.eecs.berkeley.edu/~ptII/ptolemyII/ptIIlatest/ptII/doc/codeDoc/ptolemy/actor/lib/Exec.html
You can set the environment parameter to include a particular path.

The Exec actor is tricky to use because of path issues.  The Exec actor
uses the Java Runtime.exec() method, so looking at docs for Runtime exec
might be of use.

_Christopher

subhav mital wrote:
> Hello,
> I am trying to launch a program using the command line in the Windows
> Command Prompt. Eg: My application name is: xyz.app which I want Kepler to
> launch using the external execution actor
> 
> If I type cmd in windows, the command prompt opens up. Then, if I enter
> xyz.app, the application launches. However, if I used the external execution
> actor and give the appropriate commands { --Variation: 1) xyz.app written in
> a string constant actor and connected to the command input port; --Variation
> 2) "cmd xyz.app"  }, it does not launch.
> 
> It gives no error but the application does not launch.
> On the other hand, if I type "excel" and connect this to the command input
> port of the external execution actor, MS Excel launches.
> 
> Any idea what is going wrong?
> Can someone please help ?
> 
> Thank you
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

-- 
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480


More information about the Kepler-dev mailing list